diff --git a/unit_testing.py b/unit_testing.py index 9536d85..8ad7ef6 100644 --- a/unit_testing.py +++ b/unit_testing.py @@ -22,6 +22,9 @@ def test_positives(self): self.assertEqual(w2n.word_to_num('two point three'), 2.3) self.assertEqual(w2n.word_to_num('two million twenty three thousand and forty nine point two three six nine'), 2023049.2369) self.assertEqual(w2n.word_to_num('one billion two million twenty three thousand and forty nine point two three six nine'), 1002023049.2369) + self.assertEqual(w2n.word_to_num('one billion two hundred seventy four million'), 1274000000) + self.assertEqual(w2n.word_to_num('one million eighty two thousand'), 1_082_000) + self.assertEqual(w2n.word_to_num('one million one hundred and eighty two thousand', 1182000)) self.assertEqual(w2n.word_to_num('point one'), 0.1) self.assertEqual(w2n.word_to_num('point'), 0) self.assertEqual(w2n.word_to_num('point nineteen'), 0)