bind: support Bool types.

Also add missing int8/int16 handling in bind/seq.

Fixes golang/go#10855.

Change-Id: I326ada44df10fc3c22628bdd2ae4ee2c3dc7902e
Reviewed-on: https://go-review.googlesource.com/10046
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Hyang-Ah (Hana) Kim
2015-05-14 22:17:57 +00:00
committed by Hyang-Ah Hana Kim
parent b658bfdf39
commit 6d80e5a85f
9 changed files with 104 additions and 9 deletions
+5
View File
@@ -22,6 +22,11 @@ public class SeqTest extends AndroidTestCase {
assertEquals("Unexpected arithmetic failure", 7, res);
}
public void testBool() {
assertTrue(Testpkg.Negate(false));
assertFalse(Testpkg.Negate(true));
}
public void testShortString() {
String want = "a short string";
String got = Testpkg.StrDup(want);