MCPcopy Create free account
hub / github.com/numpy/numpy / test_equal

Function test_equal

numpy/polynomial/tests/test_classes.py:188–196  ·  view source on GitHub ↗
(Poly)

Source from the content-addressed store, hash-verified

186
187
188def test_equal(Poly):
189 p1 = Poly([1, 2, 3], domain=[0, 1], window=[2, 3])
190 p2 = Poly([1, 1, 1], domain=[0, 1], window=[2, 3])
191 p3 = Poly([1, 2, 3], domain=[1, 2], window=[2, 3])
192 p4 = Poly([1, 2, 3], domain=[0, 1], window=[1, 2])
193 assert_(p1 == p1)
194 assert_(not p1 == p2)
195 assert_(not p1 == p3)
196 assert_(not p1 == p4)
197
198
199def test_not_equal(Poly):

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
PolyFunction · 0.85

Tested by

no test coverage detected