hname = uta_h2ip( "192.168.1.2" );
errors += fail_not_equal( strcmp( hname, "192.168.1.2" ), 0, "h2ip did not return IP address when given address" );
errors += fail_if_nil( hname, "h2ip did not return a pointer" );
hname = uta_h2ip( "192.168.1.2" );
errors += fail_not_equal( strcmp( hname, "192.168.1.2" ), 0, "h2ip did not return IP address when given address" );
errors += fail_if_nil( hname, "h2ip did not return a pointer" );
hname = uta_h2ip( "yahoo.com" );
errors += fail_if_nil( hname, "h2ip did not return a pointer" );
hname = uta_h2ip( "yahoo.com" );
errors += fail_if_nil( hname, "h2ip did not return a pointer" );
hname = uta_h2ip( "yahoo.com:1234" ); // should ignore the port
errors += fail_if_nil( hname, "h2ip did not return a pointer" );
hname = uta_h2ip( "yahoo.com:1234" ); // should ignore the port
errors += fail_if_nil( hname, "h2ip did not return a pointer" );