Skip to content

Commit

Permalink
add stateless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyass committed Aug 19, 2021
1 parent 699eb81 commit a0d2cd3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/suites/0_stateless/02_0010_function_if.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
false
false
true
1
1
2
0
0.5
2
2
1
2
zero
Z+
Z+
true
NULL
NULL
0
1
2
7 changes: 7 additions & 0 deletions tests/suites/0_stateless/02_0010_function_if.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
select if(number>1, true, false) from numbers(3) order by number;
select if(number>1, number, 1) from numbers(3) order by number;
select if(number>1, number, number/2) from numbers(3) order by number;
select if(number<1, 2, number) from numbers(3) order by number;
select if(number, 'Z+', 'zero') from numbers(3) order by number;
select if(number<1, true, null) from numbers(3) order by number;
select if(1, number, number/2) from numbers(3) order by number;

0 comments on commit a0d2cd3

Please sign in to comment.