Searched refs:scalarStuff (Results 1 – 3 of 3) sorted by relevance
/third_party/flatbuffers/tests/ |
D | KotlinTest.kt | 478 var scalarStuff = ScalarStuff.getRootAsScalarStuff(fbb.dataBuffer()) in TestScalarOptional() variable 480 assert(scalarStuff.justI8 == 0.toByte()) in TestScalarOptional() 481 assert(scalarStuff.maybeI8 == null) in TestScalarOptional() 482 assert(scalarStuff.defaultI8 == 42.toByte()) in TestScalarOptional() 483 assert(scalarStuff.justU8 == 0.toUByte()) in TestScalarOptional() 484 assert(scalarStuff.maybeU8 == null) in TestScalarOptional() 485 assert(scalarStuff.defaultU8 == 42.toUByte()) in TestScalarOptional() 486 assert(scalarStuff.justI16 == 0.toShort()) in TestScalarOptional() 487 assert(scalarStuff.maybeI16 == null) in TestScalarOptional() 488 assert(scalarStuff.defaultI16 == 42.toShort()) in TestScalarOptional() [all …]
|
D | JavaTest.java | 1235 ScalarStuff scalarStuff = ScalarStuff.getRootAsScalarStuff(fbb.dataBuffer()); in TestScalarOptional() local 1236 TestEq(scalarStuff.justI8(), (byte)0); in TestScalarOptional() 1237 TestEq(scalarStuff.maybeI8(), (byte)0); in TestScalarOptional() 1238 TestEq(scalarStuff.defaultI8(), (byte)42); in TestScalarOptional() 1239 TestEq(scalarStuff.justU8(), 0); in TestScalarOptional() 1240 TestEq(scalarStuff.maybeU8(), 0); in TestScalarOptional() 1241 TestEq(scalarStuff.defaultU8(), 42); in TestScalarOptional() 1242 TestEq(scalarStuff.justI16(), (short)0); in TestScalarOptional() 1243 TestEq(scalarStuff.maybeI16(), (short)0); in TestScalarOptional() 1244 TestEq(scalarStuff.defaultI16(), (short)42); in TestScalarOptional() [all …]
|
/third_party/flatbuffers/tests/FlatBuffers.Test/ |
D | FlatBuffersExampleTests.cs | 903 ScalarStuff scalarStuff = ScalarStuff.GetRootAsScalarStuff(fbb.DataBuffer); in TestScalarOptional_EmptyBuffer() 904 Assert.AreEqual((sbyte)0, scalarStuff.JustI8); in TestScalarOptional_EmptyBuffer() 905 Assert.AreEqual(null, scalarStuff.MaybeI8); in TestScalarOptional_EmptyBuffer() 906 Assert.AreEqual((sbyte)42, scalarStuff.DefaultI8); in TestScalarOptional_EmptyBuffer() 907 Assert.AreEqual((byte)0, scalarStuff.JustU8); in TestScalarOptional_EmptyBuffer() 908 Assert.AreEqual(null, scalarStuff.MaybeU8); in TestScalarOptional_EmptyBuffer() 909 Assert.AreEqual((byte)42, scalarStuff.DefaultU8); in TestScalarOptional_EmptyBuffer() 911 Assert.AreEqual((short)0, scalarStuff.JustI16); in TestScalarOptional_EmptyBuffer() 912 Assert.AreEqual(null, scalarStuff.MaybeI16); in TestScalarOptional_EmptyBuffer() 913 Assert.AreEqual((short)42, scalarStuff.DefaultI16); in TestScalarOptional_EmptyBuffer() [all …]
|