class LocationTest
Public Instance Methods
setup()
click to toggle source
# File ../../../../../test/test_location.rb, line 5 def setup end
test_lineno()
click to toggle source
# File ../../../../../test/test_location.rb, line 8 def test_lineno f = StringIO.new("a\nb\nc\n") location = ReVIEW::Location.new('foo', f) assert_equal 0, location.lineno f.gets assert_equal 1, location.lineno end
test_string()
click to toggle source
# File ../../../../../test/test_location.rb, line 16 def test_string location = ReVIEW::Location.new('foo', StringIO.new("a\nb\nc\n")) assert_equal 'foo:0', location.string end
test_to_s()
click to toggle source
# File ../../../../../test/test_location.rb, line 21 def test_to_s location = ReVIEW::Location.new('foo', StringIO.new("a\nb\nc\n")) assert_equal 'foo:0', location.to_s end
test_to_s_nil()
click to toggle source
# File ../../../../../test/test_location.rb, line 26 def test_to_s_nil location = ReVIEW::Location.new('foo', nil) assert_equal 'foo:nil', location.to_s end