Exemple #1
0
def test():
    x = string_cataloging.string_to_integer('ein')
    y = string_cataloging.string_to_integer('zwei')
    z = string_cataloging.string_to_integer('drei')

    assert string_cataloging.integer_to_string(x) == 'ein'
    assert string_cataloging.integer_to_string(y) == 'zwei'
    assert string_cataloging.integer_to_string(z) == 'drei'

    assert {string_cataloging.string_to_integer('zwei') for i in xrange(10)} \
                                                                         == {y}
Exemple #2
0
def test():
    x = string_cataloging.string_to_integer('ein')
    y = string_cataloging.string_to_integer('zwei')
    z = string_cataloging.string_to_integer('drei')
    
    assert string_cataloging.integer_to_string(x) == 'ein'
    assert string_cataloging.integer_to_string(y) == 'zwei'
    assert string_cataloging.integer_to_string(z) == 'drei'
    
    assert {string_cataloging.string_to_integer('zwei') for i in xrange(10)} \
                                                                         == {y}