class PreprocessorStripTest
Public Instance Methods
test_gets()
click to toggle source
# 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
test_gets_with_comment()
click to toggle source
# 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