diff --git a/testing.py b/testing.py deleted file mode 100644 index ee1e1a8..0000000 --- a/testing.py +++ /dev/null @@ -1,25 +0,0 @@ -""" testing.... - -word_to_num('one hundred and forty two') - -word_to_num('three thousand four hundred and seventy four') - -word_to_num('thirty five thousand seven hundred eighty nine') - -word_to_num('three hundred thousand four hundred forty two') - -word_to_num('three million') ## - -word_to_num('three billion') ## - -word_to_num('three thousand') ## - -word_to_num('three hundred thousand four hundred') ## - -word_to_num('thirty five thousand seven hundred eighty one') - -word_to_num('one hundred twenty three million four hundred fifty six thousand seven hundred and eighty one') - -word_to_num('four hundred and forty three thousand') ## - -""" \ No newline at end of file diff --git a/unit_testing.py b/unit_testing.py index bf2b839..68949db 100644 --- a/unit_testing.py +++ b/unit_testing.py @@ -1,5 +1,5 @@ import unittest -import w2n +from word2number import w2n class TestW2N(unittest.TestCase): diff --git a/word2number/unit_testing.py b/word2number/unit_testing.py deleted file mode 100644 index 68949db..0000000 --- a/word2number/unit_testing.py +++ /dev/null @@ -1,18 +0,0 @@ -import unittest -from word2number import w2n - -class TestW2N(unittest.TestCase): - - def test_output(self): - self.assertEqual(w2n.word_to_num("two million three thousand nine hundred and eighty four"),2003984) - self.assertEqual(w2n.word_to_num("nineteen"),19) - self.assertEqual(w2n.word_to_num('three billion'),3000000000) - self.assertEqual(w2n.word_to_num('three million'),3000000) - self.assertEqual(w2n.word_to_num('one hundred twenty three million four hundred fifty six thousand seven hundred and eighty nine') -,123456789) - self.assertEqual(w2n.word_to_num('eleven'),11) - self.assertEqual(w2n.word_to_num('nineteen billion and nineteen'),19000000019) - self.assertEqual(w2n.word_to_num('one hundred and forty two'),142) - -if __name__ == '__main__': - unittest.main() \ No newline at end of file