aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1997-09-13 03:20:18 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1997-09-13 03:20:18 +0000
commit05428ada1d0e6f8c9d34f9e926a0fbdbc1d03817 (patch)
tree68f6c65305d8b47cc45841e7c8ae1305c814cbcd
parente4b27f2acd9daf4de40181529f115bfb15b68c80 (diff)
downloadpostgresql-05428ada1d0e6f8c9d34f9e926a0fbdbc1d03817.tar.gz
postgresql-05428ada1d0e6f8c9d34f9e926a0fbdbc1d03817.zip
Add tests for unary minus.
-rw-r--r--src/test/regress/expected/int4.out24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/regress/expected/int4.out b/src/test/regress/expected/int4.out
index ed3b9f2d096..5abaae14552 100644
--- a/src/test/regress/expected/int4.out
+++ b/src/test/regress/expected/int4.out
@@ -204,6 +204,30 @@ five| f1| x
|-2147483647|-1073741823
(5 rows)
+QUERY: SELECT -2+3 AS one;
+one
+---
+ 1
+(1 row)
+
+QUERY: SELECT 4-2 AS two;
+two
+---
+ 2
+(1 row)
+
+QUERY: SELECT 2- -1 AS three;
+three
+-----
+ 3
+(1 row)
+
+QUERY: SELECT 2 - -2 AS four;
+four
+----
+ 4
+(1 row)
+
QUERY: SELECT '2'::int2 * '2'::int2 = '16'::int2 / '4'::int2 AS true;
true
----