Commits

henr...@monster.local  committed 73eb830

keyword macro test

  • Participants
  • Parent commits df72038

Comments (0)

Files changed (1)

File tests/samples/test_js_semantic.py

         # //checkIdentifier("fooØbar", "fooØbar"); // Unicode
         
     def test_k(self):
-        result,error = JavaScriptGrammar(r' abc').apply("k","abc")
+        result,error = JavaScriptGrammar(' abc').apply("k","abc")
         assert result == Token("abc",[" "])
         
+        result,error = JavaScriptGrammar('\n').apply("k_postfix")
+        assert result == ["\n"]
+
     def no_test_arguments(self):
         result,error = JavaScriptGrammar(r'abc,def,5').apply("ArgumentList")
         assert result == [["IdExpr",{},"abc"],["IdExpr",{},"def"], ["LiteralExpr",{},"5"]]