Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

add test 4 https://github.com/akshaynagpal/w2n/issues/61 #30

Merged
merged 1 commit into from
May 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions python/unit_testing_en.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def test_positives_en(self):
#https://github.com/akshaynagpal/w2n/issues/58
self.assertEqual(w2n.word_to_num("Example title - Chapter One Hundred Fifteen"), 115)
self.assertEqual(w2n.word_to_num("Example title - Ninety-Eight"), 98)

#https://github.com/akshaynagpal/w2n/issues/61
self.assertEqual(w2n.word_to_num("thirty-four hundred and fifty"), 3450)

def test_negatives_en(self):
self.assertRaises(ValueError, w2n.word_to_num, '112-')
Expand Down