mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 13:52:19 +00:00
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:
@@ -97,7 +97,7 @@ namespace FlatBuffers.Test
|
||||
Monster.AddTest(fbb, mon2.Value);
|
||||
Monster.AddTest4(fbb, test4);
|
||||
Monster.AddTestarrayofstring(fbb, testArrayOfString);
|
||||
Monster.AddTestbool(fbb, false);
|
||||
Monster.AddTestbool(fbb, true);
|
||||
Monster.AddTestarrayoftables(fbb, sortMons);
|
||||
var mon = Monster.EndMonster(fbb);
|
||||
|
||||
@@ -246,7 +246,7 @@ namespace FlatBuffers.Test
|
||||
Assert.AreEqual("test1", monster.Testarrayofstring(0));
|
||||
Assert.AreEqual("test2", monster.Testarrayofstring(1));
|
||||
|
||||
Assert.AreEqual(false, monster.Testbool);
|
||||
Assert.AreEqual(true, monster.Testbool);
|
||||
|
||||
#if ENABLE_SPAN_T
|
||||
var nameBytes = monster.GetNameBytes();
|
||||
|
||||
Reference in New Issue
Block a user