Add tests for moduloOrZero

This commit is contained in:
hcz 2020-02-25 18:06:59 +08:00
parent 88464d18b6
commit a7d10dd0ce
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
1
1
1
1
1

View File

@ -0,0 +1,5 @@
select moduloOrZero(0, 0) = 0;
select moduloOrZero(-128, -1) = 0;
select moduloOrZero(-127, -1) = 0;
select moduloOrZero(1, 1) = 0;
select moduloOrZero(5, 3) = 2;