示例#1
0
def test_tester_long_and_invert():
    input_ = testing.makeSimpleTrack(
        'input', testing.shortcodeToSegiter("00000000000000001"))
    #  input: 00000000000000001
    # result: 0...............1
    r = core.cleaner(input_)
    assert testing.segiterToShortcode(r) == "0...............1"
示例#2
0
def test_tester_longreps():
    input_ = testing.makeSimpleTrack(
        'input', testing.shortcodeToSegiter("0000000000000000"))
    #  input: 0000000000000000
    # result: 0...............
    r = core.cleaner(input_)
    assert testing.segiterToShortcode(r) == "0..............."
示例#3
0
def test_tester_short2():
    input_ = testing.makeSimpleTrack('input', testing.shortcodeToSegiter("0."))
    #  input: 0.
    # result: 0.
    r = core.cleaner(input_)
    assert testing.segiterToShortcode(r) == "0."
示例#4
0
def test_cleaner_plain(input_):
    #  input: 00110.1.0.01.111100000101
    # result: 0.1.0.1.0..1.....0....101
    r = core.cleaner(input_)
    assert testing.segiterToShortcode(r) == "0.1.0.1.0..1.....0....101"