Reorganize tests.

This commit is contained in:
Bob Nystrom
2013-11-26 22:52:00 -08:00
parent 897a396599
commit 56449cdbef
72 changed files with 0 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
io.write(5 % 3) // expect: 2
io.write(10 % 5) // expect: 0
io.write(-4 % 3) // expect: -1
io.write(4 % -3) // expect: 1
io.write(-4 % -3) // expect: -1
io.write(-4.2 % 3.1) // expect: -1.1
io.write(4.2 % -3.1) // expect: 1.1
io.write(-4.2 % -3.1) // expect: -1.1
// Left associative.
io.write(13 % 7 % 4) // expect: 2
// TODO(bob): Unsupported RHS types.
// TODO(bob): Error on mod by zero.