Skip to content

Commit

Permalink
Add tests for today(),yesterday(),tomorrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dust1 committed Sep 2, 2021
1 parent 5b3fa62 commit c804e67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/suites/0_stateless/02_0012_function_datetimes.result
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ true
true
true
true
true
true
true
true
7 changes: 6 additions & 1 deletion tests/suites/0_stateless/02_0012_function_datetimes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ select today() + 1 - today() = 1;

select toTypeName(today() - today()) = 'Int32';
select toTypeName(now() - now()) = 'Int32';
select sum(today() + number - today()) = 45 from numbers(10);
select sum(today() + number - today()) = 45 from numbers(10);

select today() - 1 = yesterday();
select today() - yesterday() = 1;
select today() + 1 = tomorrow();
select tomorrow() - today() = 1;

0 comments on commit c804e67

Please sign in to comment.