MCPcopy Index your code
hub / github.com/RustPython/RustPython / eq

Method eq

Lib/test/test_complex.py:748–750  ·  view source on GitHub ↗
(actual, expected)

Source from the content-addressed store, hash-verified

746
747 def test_from_number(self, cls=complex):
748 def eq(actual, expected):
749 self.assertEqual(actual, expected)
750 self.assertIs(type(actual), cls)
751
752 eq(cls.from_number(3.14), 3.14+0j)
753 eq(cls.from_number(3.14j), 3.14j)

Callers 1

test_richcompareMethod · 0.45

Calls 2

assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected