adding tokens to basic types

This commit is contained in:
Torsten Ruger
2015-09-12 19:33:21 +03:00
parent ca8e63d8f3
commit c538679c67
5 changed files with 52 additions and 22 deletions

View File

@ -54,25 +54,12 @@ class TestBasic < MiniTest::Test
check
end
def test_instance_variable
@input = '@foo_bar '
@output = Ast::VariableExpression.new(:foo_bar)
check
end
def test_module_name
@input = 'FooBar '
@output = Ast::ModuleName.new("FooBar")
check
end
def ttest_comment # maybe a non test at this point (higher up)
out = "# i am a comment \n"
@input = out.dup #NEEDS the return, which is what delimits the comment
@output = @output #dont transform
check
end
def test_string
@input = '"hello"'
@output = Ast::StringExpression.new('hello')