Sha256: 47706587a9d4a53cf71ec92e41b4794eba5ee76c508fbc61a83b44e452566526

Contents?: true

Size: 505 Bytes

Versions: 31

Compression:

Stored size: 505 Bytes

Contents

require 'test_helper'
require 'review/preprocessor'
require 'stringio'

class PreprocessorStripTest < Test::Unit::TestCase
  include ReVIEW

  def test_gets
    f = StringIO.new '= Header'
    s = Preprocessor::Strip.new(f)
    expect = '= Header'
    actual = s.gets
    assert_equal expect, actual
  end

  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
end

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
review-3.1.0 test/test_preprocessor.rb
review-3.0.0 test/test_preprocessor.rb
review-3.0.0.rc1 test/test_preprocessor.rb
review-3.0.0.preview4 test/test_preprocessor.rb
review-3.0.0.preview3 test/test_preprocessor.rb
review-3.0.0.preview2 test/test_preprocessor.rb
review-3.0.0.preview1 test/test_preprocessor.rb
review-2.5.0 test/test_preprocessor.rb
review-2.4.0 test/test_preprocessor.rb
review-2.3.0 test/test_preprocessor.rb
review-2.2.0 test/test_preprocessor.rb
review-2.1.0 test/test_preprocessor.rb
review-2.0.0 test/test_preprocessor.rb
review-1.7.2 test/test_preprocessor.rb
review-1.7.1 test/test_preprocessor.rb
review-peg-0.2.2 test/test_preprocessor.rb
review-peg-0.2.1 test/test_preprocessor.rb
review-peg-0.2.0 test/test_preprocessor.rb
review-peg-0.1.3 test/test_preprocessor.rb
review-peg-0.1.2 test/test_preprocessor.rb