Skip to content
Browse files

Make tests collation-insensitive.

  • Loading branch information...
1 parent 903787b commit 1ffc37af86d5454e5a58d134316a7c50a497cf67 @theory committed
Showing with 40 additions and 52 deletions.
  1. +24 −36 test/expected/base.out
  2. +16 −16 test/sql/base.sql
View
60 test/expected/base.out
@@ -1,41 +1,29 @@
\set ECHO 0
- SELECT pair('foo', 'bar')
-UNION SELECT pair('HEY'::text, 'bar')
-UNION SELECT pair('foo'::text, 'woah'::text)
-UNION SELECT pair('ick', 'foo'::text)
-UNION SELECT pair('foo'::text, 1)
-UNION SELECT pair(12.3, 'foo'::text)
-UNION SELECT pair(1, 12)
-ORDER BY pair;
- pair
-------------
- (1,12)
- (12.3,foo)
- (HEY,bar)
- (foo,1)
- (foo,bar)
- (foo,woah)
- (ick,foo)
-(7 rows)
+SELECT pair('foo', 'bar')
+ , pair('HEY'::text, 'bar')
+ , pair('foo'::text, 'woah'::text)
+ , pair('ick', 'foo'::text)
+ , pair('foo'::text, 1)
+ , pair(12.3, 'foo'::text)
+ , pair(1, 12)
+;
+ pair | pair | pair | pair | pair | pair | pair
+-----------+-----------+------------+-----------+---------+------------+--------
+ (foo,bar) | (HEY,bar) | (foo,woah) | (ick,foo) | (foo,1) | (12.3,foo) | (1,12)
+(1 row)
- SELECT 'foo' ~> 'bar' AS arrowop
-UNION SELECT 'HEY'::text ~> 'bar'
-UNION SELECT 'foo'::text ~> 'woah'::text
-UNION SELECT 'ick' ~> 'foo'::text
-UNION SELECT 'foo'::text ~> 1
-UNION SELECT 12.3 ~> 'foo'::text
-UNION SELECT 1 ~> 12
-ORDER BY arrowop;
- arrowop
-------------
- (1,12)
- (12.3,foo)
- (HEY,bar)
- (foo,1)
- (foo,bar)
- (foo,woah)
- (ick,foo)
-(7 rows)
+SELECT 'foo' ~> 'bar' AS arrowop
+ , 'HEY'::text ~> 'bar'
+ , 'foo'::text ~> 'woah'::text
+ , 'ick' ~> 'foo'::text
+ , 'foo'::text ~> 1
+ , 12.3 ~> 'foo'::text
+ , 1 ~> 12
+;
+ arrowop | ?column? | ?column? | ?column? | ?column? | ?column? | ?column?
+-----------+-----------+------------+-----------+----------+------------+----------
+ (foo,bar) | (HEY,bar) | (foo,woah) | (ick,foo) | (foo,1) | (12.3,foo) | (1,12)
+(1 row)
CREATE TABLE kv (
pair pair
View
32 test/sql/base.sql
@@ -3,23 +3,23 @@ BEGIN;
\i sql/pair.sql
\set ECHO all
- SELECT pair('foo', 'bar')
-UNION SELECT pair('HEY'::text, 'bar')
-UNION SELECT pair('foo'::text, 'woah'::text)
-UNION SELECT pair('ick', 'foo'::text)
-UNION SELECT pair('foo'::text, 1)
-UNION SELECT pair(12.3, 'foo'::text)
-UNION SELECT pair(1, 12)
-ORDER BY pair;
+SELECT pair('foo', 'bar')
+ , pair('HEY'::text, 'bar')
+ , pair('foo'::text, 'woah'::text)
+ , pair('ick', 'foo'::text)
+ , pair('foo'::text, 1)
+ , pair(12.3, 'foo'::text)
+ , pair(1, 12)
+;
- SELECT 'foo' ~> 'bar' AS arrowop
-UNION SELECT 'HEY'::text ~> 'bar'
-UNION SELECT 'foo'::text ~> 'woah'::text
-UNION SELECT 'ick' ~> 'foo'::text
-UNION SELECT 'foo'::text ~> 1
-UNION SELECT 12.3 ~> 'foo'::text
-UNION SELECT 1 ~> 12
-ORDER BY arrowop;
+SELECT 'foo' ~> 'bar' AS arrowop
+ , 'HEY'::text ~> 'bar'
+ , 'foo'::text ~> 'woah'::text
+ , 'ick' ~> 'foo'::text
+ , 'foo'::text ~> 1
+ , 12.3 ~> 'foo'::text
+ , 1 ~> 12
+;
CREATE TABLE kv (
pair pair

0 comments on commit 1ffc37a

Please sign in to comment.
Something went wrong with that request. Please try again.