Permalink
Browse files

Update tests

  • Loading branch information...
kchmck committed Jul 19, 2011
1 parent 1388eac commit e9611fb8c06fdc0d4416005b4fc45d84f1d7cc34
Showing with 23 additions and 2 deletions.
  1. +2 −2 test/test-interp.coffee
  2. +14 −0 test/test-reserved.coffee
  3. +5 −0 test/test.html
  4. +2 −0 test/test.html.eco
View
@@ -1,3 +1,3 @@
# Nested curlies
-" == #{ == { { { } } } == } == "
-" == #{ == { a: { b: 42 } } == } == "
+" >> #{ == { { { } } } == } << "
+" >> #{ == { abc: { def: 42 } } == } << "
View
@@ -0,0 +1,14 @@
+# Should be an error
+function = 42
+var = 42
+
+# Shouldn't be an error
+abc.with = 42
+function: 42
+var: 42
+
+# Keywords shouldn't be highlighted
+abc = def.function
+abc = def.do
+abc = def.break
+abc = def.true
View
@@ -0,0 +1,5 @@
+<script type="text/coffeescript">
+ abc = {
+ def: 42
+ }
+</script>
View
@@ -0,0 +1,2 @@
+<%# Nested coffee %>
+<% " >> #{ == { abc: { def: 42 } } == } << " %>

0 comments on commit e9611fb

Please sign in to comment.