# File ../../../../../test/test_preprocessor.rb, line 8 def test_gets f = StringIO.new '= Header' s = Preprocessor::Strip.new(f) expect = '= Header' actual = s.gets assert_equal expect, actual end
# File ../../../../../test/test_preprocessor.rb, line 16 def test_gets_with_comment f = StringIO.new '#@warn(write it later)' s = Preprocessor::Strip.new(f) expect = '#@#' + "\n" actual = s.gets assert_equal expect, actual end