Skip to content

Commit

Permalink
adding some tests for string operations
Browse files Browse the repository at this point in the history
  • Loading branch information
davidedc committed Oct 14, 2016
1 parent 65fb2df commit b6b9695
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions run-tests.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ test_low_level = ->
test_dependencies()
test_assignments()
test_caching()
test_strings()

selftest = ->
test_low_level()
Expand Down
19 changes: 19 additions & 0 deletions tests/strings.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
test_strings = ->
run_test [

"\"hey\" + \"you\"",
"\"hey\"+\"you\"",

"\"hey\" + \"hey\"",
"2*\"hey\"",

"\"hey\" / \"hey\"",
"1",

"\"hey\" - \"hey\"",
"0",

"\"hey\" * \"hey\"",
"\"hey\"^2",

]

0 comments on commit b6b9695

Please sign in to comment.