test/import/test_shake_lexer.rb in tracksperanto-2.4.1 vs test/import/test_shake_lexer.rb in tracksperanto-2.5.0
- old
+ new
@@ -169,9 +169,14 @@
assert_equal :comment, tree[0][0]
assert_equal :comment, tree[1][0]
assert_equal :funcall, tree[2][0]
end
+ def test_parse_simple_varassign
+ s = parse 'Foo = 1;'
+ assert_equal [[:assign, [:vardef, :image, "Foo"], 1]], s, "Note that the variable name should be escaped properly"
+ end
+
def test_parse_varassign
s = parse 'Foo = Blur(Foo, 1, 2, 3); 1'
assert_equal [[:assign, [:vardef, :image, "Foo"], [:funcall, "Blur", [:atom, "Foo"], 1, 2, 3]], 1], s
end
\ No newline at end of file