Skip to content

Commit

Permalink
due to redparse changes, empty form now returns
Browse files Browse the repository at this point in the history
an empty sequencenode instead of varlikenode['nil']
so, I gotta update the specific hack for that (empty) input
  • Loading branch information
calebc committed Jun 7, 2011
1 parent d4cf3c7 commit 895bd81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_form.rb
Expand Up @@ -101,7 +101,7 @@ def check(code,pre="\n",post="\n")

begin
as_tree=RedParse.new(" \n"+code).parse
as_tree=RedParse::VarLikeNode["nil", {:@value=>nil}] if RedParse::NopNode===as_tree
as_tree=RedParse::SequenceNode[] if RedParse::NopNode===as_tree
rescue Exception=>treeexc
0
end
Expand Down

0 comments on commit 895bd81

Please sign in to comment.