MCPcopy
hub / github.com/keon/algorithms / test_monomial_clone

Method test_monomial_clone

tests/test_monomial.py:201–214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

199 return
200
201 def test_monomial_clone(self):
202
203 # A monomial should produce its copy
204 # with same underlying variable dictionary
205 # and same coefficient.
206 self.assertEqual(self.m3, self.m3.clone())
207
208 # The zero monomial is identified and
209 # always clones to itself.
210 self.assertEqual(self.m1, self.m8.clone())
211 self.assertEqual(self.m1, self.m1.clone())
212 self.assertEqual(self.m8, self.m1.clone())
213 self.assertEqual(self.m8, self.m8.clone())
214 return
215
216
217if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected