test/test_helper.rb in review-1.1.0 vs test/test_helper.rb in review-1.2.0
- old
+ new
@@ -6,9 +6,16 @@
li = LineInput.new(io)
@compiler.__send__(:compile_ulist, li)
assert_equal expect, @builder.raw_result
end
+def ol_helper(src, expect)
+ io = StringIO.new(src)
+ li = LineInput.new(io)
+ @compiler.__send__(:compile_olist, li)
+ assert_equal expect, @builder.raw_result
+end
+
def builder_helper(src, expect, method_sym)
io = StringIO.new(src)
li = LineInput.new(io)
@compiler.__send__(method_sym, li)
assert_equal expect, @builder.raw_result