<filename>tests/duplicate_encoder_test.py
from katas.duplicate_encoder import duplicate_encode


def test_duplicate_encode():
    assert duplicate_encode("din") == "((("
    assert duplicate_encode("recede") == "()()()"
    assert duplicate_encode("Success") == ")())())"
    assert duplicate_encode("(( @") == "))(("

<filename>tests/duplicate_encoder_test.py
from katas.duplicate_encoder import duplicate_encode


def test_duplicate_encode():
    assert duplicate_encode("din") == "((("
    assert duplicate_encode("recede") == "()()()"
    assert duplicate_encode("Success") == ")())())"
    assert duplicate_encode("(( @") == "))(("
