Skip to content

Commit

Permalink
Split up localhost and resolve tests (HaxeFoundation#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan63 authored Jun 16, 2024
1 parent 8e3bc36 commit e1798e6
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions test/std/Test.hx
Original file line number Diff line number Diff line change
Expand Up @@ -420,17 +420,30 @@ class Test

}

public static function testHost()
public static function testLocalhost()
{
log("Test Host");
try
{
var localhost = Host.localhost();
v('localhost :$localhost');
var host = new Host(localhost);
if (localhost == null || localhost.length == 0)
return error("null or empty localhost");
return ok();
}
catch(e:Dynamic)
{
return error("Unexpected error in testHost: " + e);
}
}

public static function testHost()
{
log("Test Host");
try
{
var host = new Host("github.com");
v('host :$host');
// var reverse = host.reverse();
// v('reverse :$reverse');
return ok();
}
catch(e:Dynamic)
Expand Down

0 comments on commit e1798e6

Please sign in to comment.