diff --git a/test/input_handling_test.rb b/test/input_handling_test.rb index 9d453b97b562c615bc82178495dba36c05e9d9a7..f5da1f13c9df941fdbf08a157464a0dbb0738d7c 100644 --- a/test/input_handling_test.rb +++ b/test/input_handling_test.rb @@ -6,8 +6,10 @@ class InputHandlingTest < Test::Unit::TestCase def test_ip_address_detection assert Geocoder.send(:ip_address?, "232.65.123.94") assert Geocoder.send(:ip_address?, "666.65.123.94") # technically invalid + assert Geocoder.send(:ip_address?, "::ffff:12.34.56.78") assert !Geocoder.send(:ip_address?, "232.65.123.94.43") assert !Geocoder.send(:ip_address?, "232.65.123") + assert !Geocoder.send(:ip_address?, "::ffff:123.456.789") end def test_blank_query_detection