Some docs and to_s testing

somewhat code_climate inspired
This commit is contained in:
Torsten Ruger
2018-09-01 15:54:25 +03:00
parent 2bb6ad5f61
commit d73e1526cd
12 changed files with 111 additions and 18 deletions

View File

@ -37,5 +37,9 @@ module Ruby
assert_equal TrueConstant , lst.if_true.class
assert_equal FalseConstant, lst.if_false.class
end
def test_to_s
lst = compile( double_if )
assert_equal "if(false);true;else;false;end" , lst.to_s.gsub("\n",";")
end
end
end