summaryrefslogtreecommitdiff
path: root/examples/wordsToNum.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wordsToNum.py')
-rw-r--r--examples/wordsToNum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/wordsToNum.py b/examples/wordsToNum.py
index 3d5c4b7..cbd3d26 100644
--- a/examples/wordsToNum.py
+++ b/examples/wordsToNum.py
@@ -85,9 +85,9 @@ def test(s,expected):
if not fail_expected:
teststr, results = results_tup[0]
observed = results[0]
- assert expected == observed, "incorrect parsed value, {} -> {}, should be {}".format(teststr, observed, expected)
+ assert expected == observed, "incorrect parsed value, {0} -> {1}, should be {2}".format(teststr, observed, expected)
except Exception as exc:
- print("{}: {}".format(type(exc).__name__, exc))
+ print("{0}: {1}".format(type(exc).__name__, exc))
test("one hundred twenty hundred", None)
test("one hundred and twennty", None)