day 01: some cleanup, catch lines without any digits
This commit is contained in:
parent
e01dfeab9e
commit
ef2459f0c9
2 changed files with 3 additions and 3 deletions
|
|
@ -17,6 +17,7 @@ class TestThing(unittest.TestCase):
|
|||
self.assertEqual(program.get_cal_val("th95"), 95)
|
||||
self.assertEqual(program.get_cal_val("g2"), 22)
|
||||
self.assertEqual(program.get_cal_val("2"), 22)
|
||||
self.assertEqual(program.get_cal_val("wjezrg"), 0)
|
||||
|
||||
def testReplaceDigitStrings(self):
|
||||
self.assertEqual(program.replace_digit_strings("one"), "o1e")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue