Skip to content

Commit

Permalink
add some syntax tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Dec 26, 2012
1 parent 7d4bd44 commit af2cd33
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions syntax.tml
@@ -0,0 +1,35 @@
%TestML 0.1.0

Plan = 7

compare(*testml, *testml1)
compare(*testml, *testml2)
compare(*testml, *testml3)
compare(*testml, *testml4)

compare = (one, two) ->
one.compile == two.compile

=== Optional semi-colons
--- testml
Plan = 123;
*a == *b;
--- testml1
Plan = 123; *a == *b;
--- testml2
Plan = 123; *a == *b
--- testml3
Plan = 123
*a == *b

=== Empty Function
--- testml
a = ->
--- testml1
a = {}
--- testml2
a = ()->
--- testml3
a = () ->
--- testml4
a = () {}

0 comments on commit af2cd33

Please sign in to comment.