Coverage for tests/test_unitMap.py : 41%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
unitmap = ast.UnitMap(3) self.assertEqual(unitmap.className, "UnitMap") self.assertEqual(unitmap.nIn, 3) self.assertEqual(unitmap.nOut, 3)
self.checkBasicSimplify(unitmap) self.checkCopy(unitmap)
indata = np.array([ [1.1, 2.2, 3.3, 4.4], [-43.5, 1309.31, 0.005, -36.5], [0.0, -2.3, 44.4, 3.14], ]) outdata = unitmap.applyForward(indata) assert_allclose(outdata, indata) self.checkRoundTrip(unitmap, indata) self.checkMappingPersistence(unitmap, indata)
unittest.main() |