Lines Matching refs:asserter
85 def asserter(stmt): function
93 asserter(size == 340)
97 asserter(monster.Hp() == 80)
98 asserter(monster.Mana() == 150)
99 asserter(monster.Name() == b'MyMonster')
103 asserter(vec is not None)
106 asserter(vec.X() == 1.0)
107 asserter(vec.Y() == 2.0)
108 asserter(vec.Z() == 3.0)
109 asserter(vec.Test1() == 3.0)
110 asserter(vec.Test2() == 2)
115 asserter(t is not None)
118 asserter(t.A() == 5)
119 asserter(t.B() == 6)
123 asserter(monster.TestType() == union_type.Monster)
127 asserter(type(table2) is flatbuffers.table.Table)
133 asserter(monster2.Name() == b"Fred")
136 asserter(monster.InventoryLength() == 5)
142 asserter(invsum == 10)
145 asserter(monster.VectorOfLongs(i) == 10 ** (i * 2))
147 asserter(([-1.7976931348623157e+308, 0, 1.7976931348623157e+308]
157 asserter(monster.InventoryAsNumpy().sum() == 10)
158 asserter(monster.InventoryAsNumpy().dtype == np.dtype('uint8'))
161 asserter(VectorOfLongs.dtype == np.dtype('int64'))
163 asserter(VectorOfLongs[i] == 10 ** (i * 2))
166 asserter(VectorOfDoubles.dtype == np.dtype('float64'))
167 asserter(VectorOfDoubles[0] == np.finfo('float64').min)
168 asserter(VectorOfDoubles[1] == 0.0)
169 asserter(VectorOfDoubles[2] == np.finfo('float64').max)
178 asserter(monster.Test4Length() == 2)
182 asserter(type(test0) is MyGame.Example.Test.Test)
185 asserter(type(test1) is MyGame.Example.Test.Test)
195 asserter(sumtest12 == 100)
197 asserter(monster.TestarrayofstringLength() == 2)
198 asserter(monster.Testarrayofstring(0) == b"test1")
199 asserter(monster.Testarrayofstring(1) == b"test2")
201 asserter(monster.TestarrayoftablesLength() == 0)
202 asserter(monster.TestnestedflatbufferLength() == 0)
203 asserter(monster.Testempty() is None)