from string_processor import StringProcessor


def test_process_string():
    """Test for process_string function"""
    decode = StringProcessor()
    assert decode.process_string("ab") == ""
    decode.output = ""

    assert decode.process_string("ab*") == "b"
    decode.output = ""

    assert decode.process_string("ab^") == "ba"
    decode.output = ""

    assert decode.process_string("^") == ""

cd342d77a1208b59ba7339712f0bc819a6a0ffe4
<mask token>

<mask token>


def test_process_string():
    """Test for process_string function"""
    decode = StringProcessor()
    assert decode.process_string('ab') == ''
    decode.output = ''
    assert decode.process_string('ab*') == 'b'
    decode.output = ''
    assert decode.process_string('ab^') == 'ba'
    decode.output = ''
    assert decode.process_string('^') == ''

from string_processor import StringProcessor


def test_process_string():
    """Test for process_string function"""
    decode = StringProcessor()
    assert decode.process_string('ab') == ''
    decode.output = ''
    assert decode.process_string('ab*') == 'b'
    decode.output = ''
    assert decode.process_string('ab^') == 'ba'
    decode.output = ''
    assert decode.process_string('^') == ''

from string_processor import StringProcessor


def test_process_string():
    """Test for process_string function"""
    decode = StringProcessor()
    assert decode.process_string("ab") == ""
    decode.output = ""

    assert decode.process_string("ab*") == "b"
    decode.output = ""

    assert decode.process_string("ab^") == "ba"
    decode.output = ""

    assert decode.process_string("^") == ""
