def test_separtor(self): self.assertEqual(myformat(1000, 4), '1,000.0000') self.assertEqual(myformat(1000, 0), '1,000') self.assertEqual(myformat(1000000, 4), '1,000,000.0000') self.assertEqual(myformat(1000000, 0), '1,000,000')
def test_separtor(self): self.assertEqual(myformat(1000, 4), '1,000.0000') self.assertEqual(myformat(1000, 0), '1,000') self.assertEqual(myformat(1000000, 4), '1,000,000.0000') self.assertEqual(myformat(1000000, 0), '1,000,000')
def test_no_separtor(self): self.assertEqual(myformat(33, 4), '33.0000') self.assertEqual(myformat(33, 0), '33')
def test_no_separtor(self): self.assertEqual(myformat(33, 4), '33.0000') self.assertEqual(myformat(33, 0), '33')