Beispiel #1
0
def test_last_multi_digit_number():
    assert next_version('10.9.9.9.9.9') == '11.0.0.0.0.0'
Beispiel #2
0
def test_simple_incrementing():
    assert next_version('1.2.3') == '1.2.4'
Beispiel #3
0
def test_one_multi_digit_number():
    assert next_version('10') == '11'
Beispiel #4
0
def test_long_multi_digit_number():
    assert next_version('302025720259') == '302025720260'
Beispiel #5
0
def test_version_with_last_9():
    assert next_version('9.9.9.9.9.9.9.8') == '9.9.9.9.9.9.9.9'
Beispiel #6
0
def test_next_version():
    assert next_version('9.9') == '10.0'
Beispiel #7
0
def test_long_version():
    assert next_version('1.2.3.4.5.6.7.8') == '1.2.3.4.5.6.7.9'
Beispiel #8
0
def test_one_digit_version():
    assert next_version('1') == '2'
Beispiel #9
0
def test_increment_multiple():
    assert next_version('0.9.9') == '1.0.0'