Home
last modified time | relevance | path

Searched refs:invsum (Results 1 – 8 of 8) sorted by relevance

/external/flatbuffers/tests/
DKotlinTest.kt117 var invsum = 0u in TestBuffer() variable
119 invsum += monster.inventory(i) in TestBuffer()
120 assert(invsum == 10u) in TestBuffer()
124 invsum = 0u in TestBuffer()
126 invsum += ibb.get().toUInt() in TestBuffer()
127 assert(invsum == 10u) in TestBuffer()
Dluatest.lua46 local invsum = 0
49 invsum = invsum + v
51 assert(invsum == 10)
DJavaTest.java140 int invsum = 0; in TestBuffer() local
142 invsum += monster.inventory(i); in TestBuffer()
143 TestEq(invsum, 10); in TestBuffer()
148 invsum = 0; in TestBuffer()
150 invsum += inventoryVector.getAsUnsigned(i); in TestBuffer()
151 TestEq(invsum, 10); in TestBuffer()
155 invsum = 0; in TestBuffer()
157 invsum += ibb.get(); in TestBuffer()
158 TestEq(invsum, 10); in TestBuffer()
DJavaScriptTest.js138 var invsum = 0;
140 invsum += monster.inventory(i);
142 assert.strictEqual(invsum, 10);
DphpTest.php125 $invsum = 0;
127 $invsum += $monster->GetInventory($i);
129 $assert->strictEqual($invsum, 10);
Dgo_test.go265 invsum := 0
272 invsum += int(v)
274 if invsum != 10 {
275 fail(FailString("monster inventory sum", 10, invsum))
Dpy_test.py595 invsum = 0
598 invsum += int(v)
599 asserter(invsum == 10)
/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBuffersExampleTests.cs219 var invsum = 0; in TestBuffer()
222 invsum += monster.Inventory(i); in TestBuffer()
224 Assert.AreEqual(10, invsum); in TestBuffer()
232 invsum -= inv; in TestBuffer()
234 Assert.AreEqual(0, invsum); in TestBuffer()