def test_int_to_base_2(self): self.assertEqual(lab1.int_to_base(123, 2), lab1.binarify(123))
def test_binarify_0(self): self.assertEqual(lab1.binarify(0), "0")
def test_binarify_negative(self): self.assertEqual(lab1.binarify(-16), "0")
def test_binarify_16(self): self.assertEqual(lab1.binarify(16), "10000")
def test_binarify_127(self): self.assertEqual(lab1.binarify(127), "1111111")