Skip to content

Commit

Permalink
add some failing tests to cover cases raised issue akshaynagpal#27
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick O'Neill committed Mar 18, 2019
1 parent 33aac8a commit aa57851
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unit_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa57851

Please sign in to comment.