THRIFT-3337 Add testBool method to cross tests
This closes #611
diff --git a/test/perl/TestClient.pl b/test/perl/TestClient.pl
index 0f1ce65..40f8f59 100755
--- a/test/perl/TestClient.pl
+++ b/test/perl/TestClient.pl
@@ -133,6 +133,17 @@
print(" = \"$s\"\n");
#
+# BOOL TEST
+#
+print("testBool(1)");
+my $u8 = $testClient->testBool(1);
+print(" = $u8\n");
+print("testBool(0)");
+my $u8 = $testClient->testBool(0);
+print(" = $u8\n");
+
+
+#
# BYTE TEST
#
print("testByte(1)");
diff --git a/test/perl/TestServer.pl b/test/perl/TestServer.pl
index 57a1367..eebebc8 100644
--- a/test/perl/TestServer.pl
+++ b/test/perl/TestServer.pl
@@ -148,6 +148,14 @@
return $thing;
}
+sub testBool() {
+ my $self = shift;
+ my $thing = shift;
+ my $str = $thing ? "true" : "false";
+ print("testBool($str)\n");
+ return $thing;
+}
+
sub testByte() {
my $self = shift;
my $thing = shift;