Skip to content
Snippets Groups Projects
Commit 05428ada authored by Thomas G. Lockhart's avatar Thomas G. Lockhart
Browse files

Add tests for unary minus.

parent e4b27f2a
No related branches found
No related tags found
No related merge requests found
...@@ -204,6 +204,30 @@ five| f1| x ...@@ -204,6 +204,30 @@ five| f1| x
|-2147483647|-1073741823 |-2147483647|-1073741823
(5 rows) (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; QUERY: SELECT '2'::int2 * '2'::int2 = '16'::int2 / '4'::int2 AS true;
true true
---- ----
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment