Add tests for unary minus.

This commit is contained in:
Thomas G. Lockhart 1997-09-13 03:20:18 +00:00
parent e4b27f2acd
commit 05428ada1d
1 changed files with 24 additions and 0 deletions

View File

@ -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
----