File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
test_python_toolbox/test_string_cataloging Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2009-2012 Ram Rachum.
2+ # This program is distributed under the MIT license.
Original file line number Diff line number Diff line change 1+ # Copyright 2009-2012 Ram Rachum.
2+ # This program is distributed under the MIT license.
3+
4+ from python_toolbox import string_cataloging
5+
6+
7+ def test ():
8+ x = string_cataloging .string_to_integer ('ein' )
9+ y = string_cataloging .string_to_integer ('zwei' )
10+ z = string_cataloging .string_to_integer ('drei' )
11+
12+ assert string_cataloging .integer_to_string (x ) == 'ein'
13+ assert string_cataloging .integer_to_string (y ) == 'zwei'
14+ assert string_cataloging .integer_to_string (z ) == 'drei'
15+
16+ assert set ([string_cataloging .string_to_integer ('zwei' ) for
17+ i in range (10 )]) == set ([y ])
You can’t perform that action at this time.
0 commit comments