test: add test files for number_abs, string_contains, string_count and fix empty string corner case in string_contains primitive

This commit is contained in:
Bob Nystrom
2013-10-28 13:53:51 +00:00
parent 6e8b5a2861
commit cde3490579
5 changed files with 20 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
io.write(123.abs) // expect: 123
io.write(-123.abs) // expect: 123
io.write(0.abs) // expect: 0
io.write(-0.abs) // expect: 0
// TODO(bob): Floating point numbers.