THRIFT-3341 Add testBool methods
Client: Haxe
Patch: Jens Geyer
This closes #614
diff --git a/test/haxe/src/TestClient.hx b/test/haxe/src/TestClient.hx
index 8e43c76..5c0de7c 100644
--- a/test/haxe/src/TestClient.hx
+++ b/test/haxe/src/TestClient.hx
@@ -322,6 +322,8 @@
// core module unit tests
public static function ModuleUnitTests( args : Arguments, rslt : TestResults) : Void {
+ #if debug
+
try {
BitConverter.UnitTest();
rslt.Expect( true, 'BitConverter.UnitTest Test #100');
@@ -337,6 +339,8 @@
catch( e : Dynamic) {
rslt.Expect( false, 'ZigZag.UnitTest: $e Test #101');
}
+
+ #end
}
@@ -457,6 +461,15 @@
trace(' = void');
rslt.Expect(true,"testVoid()"); // bump counter
+ trace('testBool(${true})');
+ var b = client.testBool(true);
+ trace(' = $b');
+ rslt.Expect(b, '$b == "${true}"');
+ trace('testBool(${false})');
+ b = client.testBool(false);
+ trace(' = $b');
+ rslt.Expect( ! b, '$b == "${false}"');
+
trace('testString("Test")');
var s = client.testString("Test");
trace(' = "$s"');