Skip to content

Commit c43448f

Browse files
committed
-
1 parent 909f1d2 commit c43448f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright 2009-2012 Ram Rachum.
2+
# This program is distributed under the MIT license.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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])

0 commit comments

Comments
 (0)