Skip to content

Commit 2c1d25c

Browse files
committed
Added an engine test for unary plus
Signed-off-by: Zach Musgrave <zach@liquidata.co>
1 parent c0952ff commit 2c1d25c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

engine_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ var queries = []queryTest{
5757
"SELECT -i FROM mytable;",
5858
[]sql.Row{{int64(-1)}, {int64(-2)}, {int64(-3)}},
5959
},
60+
{
61+
"SELECT +i FROM mytable;",
62+
[]sql.Row{{int64(1)}, {int64(2)}, {int64(3)}},
63+
},
64+
{
65+
"SELECT + - i FROM mytable;",
66+
[]sql.Row{{int64(-1)}, {int64(-2)}, {int64(-3)}},
67+
},
6068
{
6169
"SELECT i FROM mytable where -i = -2;",
6270
[]sql.Row{{int64(2)}},

0 commit comments

Comments
 (0)