Go - Use Go bool type for bool fields (#4962)

* Use Go bool type for bool fields, and store non-default bool field to test data
This commit is contained in:
kostya-sh
2018-10-16 00:55:59 +01:00
committed by Robert
parent 20396a1760
commit 76d31e1b5e
12 changed files with 42 additions and 21 deletions

View File

@@ -130,7 +130,7 @@ class JavaTest {
TestEq(monster.testarrayofstring(0),"test1");
TestEq(monster.testarrayofstring(1),"test2");
TestEq(monster.testbool(), false);
TestEq(monster.testbool(), true);
}
// this method checks additional fields not present in the binary buffer read from file
@@ -319,7 +319,7 @@ class JavaTest {
Monster.addTest(fbb, mon2);
Monster.addTest4(fbb, test4);
Monster.addTestarrayofstring(fbb, testArrayOfString);
Monster.addTestbool(fbb, false);
Monster.addTestbool(fbb, true);
Monster.addTesthashu32Fnv1(fbb, Integer.MAX_VALUE + 1L);
Monster.addTestarrayoftables(fbb, sortMons);
int mon = Monster.endMonster(fbb);