def test06_subtract(self): msg = "Testing basic binary subtraction" self.assertEqual(bn.subtract(bn.negate("00000001"), "00000001"), bn.negate("00000010"), msg)
def test02_negate(self): msg = "Testing basic binary negation" self.assertEqual(bn.negate("00000001"), "11111111", msg) self.assertEqual(bn.negate("00110100"), "11001100", msg)
def test03_negate(self): msg = "Testing basic binary negation" self.assertEqual(bn.negate("10101010"), "01010110", msg)