@@ -211,21 +211,33 @@ func TestEnterprise(t *testing.T) {
211211 assert .Equal (t , "Cable/DSL" , record .Traits .ConnectionType )
212212 assert .Equal (t , "frpt.net" , record .Traits .Domain )
213213 assert .Equal (t , float64 (0.34 ), record .Traits .StaticIPScore )
214+
215+ record , err = reader .Enterprise (net .ParseIP ("149.101.100.0" ))
216+ require .NoError (t , err )
217+
218+ assert .Equal (t , uint (6167 ), record .Traits .AutonomousSystemNumber )
219+
220+ assert .Equal (t , "CELLCO-PART" , record .Traits .AutonomousSystemOrganization )
221+ assert .Equal (t , "Verizon Wireless" , record .Traits .ISP )
222+ assert .Equal (t , "310" , record .Traits .MobileCountryCode )
223+ assert .Equal (t , "004" , record .Traits .MobileNetworkCode )
214224}
215225
216226func TestISP (t * testing.T ) {
217227 reader , err := Open ("test-data/test-data/GeoIP2-ISP-Test.mmdb" )
218228 assert .Nil (t , err )
219229 defer reader .Close ()
220230
221- record , err := reader .ISP (net .ParseIP ("1.128.0 .0" ))
231+ record , err := reader .ISP (net .ParseIP ("149.101.100 .0" ))
222232 assert .Nil (t , err )
223233
224- assert .Equal (t , uint (1221 ), record .AutonomousSystemNumber )
234+ assert .Equal (t , uint (6167 ), record .AutonomousSystemNumber )
225235
226- assert .Equal (t , "Telstra Pty Ltd" , record .AutonomousSystemOrganization )
227- assert .Equal (t , "Telstra Internet" , record .ISP )
228- assert .Equal (t , "Telstra Internet" , record .Organization )
236+ assert .Equal (t , "CELLCO-PART" , record .AutonomousSystemOrganization )
237+ assert .Equal (t , "Verizon Wireless" , record .ISP )
238+ assert .Equal (t , "310" , record .MobileCountryCode )
239+ assert .Equal (t , "004" , record .MobileNetworkCode )
240+ assert .Equal (t , "Verizon Wireless" , record .Organization )
229241}
230242
231243// This ensures the compiler does not optimize away the function call
0 commit comments