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"');
diff --git a/test/haxe/src/TestServerHandler.hx b/test/haxe/src/TestServerHandler.hx
index abcef13..74a8805 100644
--- a/test/haxe/src/TestServerHandler.hx
+++ b/test/haxe/src/TestServerHandler.hx
@@ -51,6 +51,19 @@
         trace("testVoid()");
     }
 
+	/**
+	* Prints 'testBool("%s")' where '%s' with thing as 'true' or 'false'
+	* @param bool  thing - the bool data to print
+	* @return bool  - returns the bool 'thing'
+	* 
+	* @param thing
+	*/
+	public function testBool(thing : Bool) : Bool
+    {
+        trace('testBool($thing)');
+        return thing;
+    }
+
     /**
     * Prints 'testString("%s")' with thing as '%s'
     * @param string thing - the string to print