# File ../../../../../test/test_location.rb, line 5 def setup end
# 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
# 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
# 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}" end
# File ../../../../../test/test_location.rb, line 26 def test_to_s_nil location = ReVIEW::Location.new("foo", nil) assert_equal "foo:nil", "#{location}" end