test: cases for kata doubly not less

This commit is contained in:
Sandro Zimmermann 2026-05-25 18:55:56 +02:00
parent 63897a7fe5
commit fd50d5ec9c

View File

@ -0,0 +1,27 @@
from src.codewars.kata_doubly_not_less import doubly_not_less
import pytest
@pytest.mark.parametrize(
("input", "expected"),
[
("5314", "5316"),
("23456", "23456"),
("65432", "65437"),
("9998786543", "9998788999"),
("1", "1"),
("1101", "1102"),
("9" * 25, "9" * 25),
(
"99999999999999999999888888888888877777777777777777766666666666655555555555555555444444444444444",
"99999999999999999999888888888888877777777777777777766666666666655555555555999999999999999999999",
),
(
"569735847563478256235634859346578345634895736459346778",
"569735847563478256235634859346578345634895736459346778",
),
("8998989898989889898989898989989899", "8998989898989889898989898989989899"),
],
)
def test_doubly_not_less(input, expected):
assert doubly_not_less(input) == expected