fixes all existing parser tests

This commit is contained in:
Torsten Ruger
2014-05-08 21:09:07 +03:00
parent 53a8efaa59
commit 6ee290e0bb
2 changed files with 5 additions and 3 deletions

View File

@ -19,8 +19,10 @@ class TestBasic < MiniTest::Test
end
def test_comment
@string_input = '# i am a comment\n' #NEEDS the return, which is what delimits the comment
@parse_output = {:comment => ' i am a comment'}
out = "# i am a comment \n"
@string_input = out.dup #NEEDS the return, which is what delimits the comment
out = out[1..-2]
@parse_output = {:comment => out}
@transform_output = @parse_output #dont transform
@parser = @parser.comment
end