コード例 #1
0
ファイル: test_crypto.py プロジェクト: AdrianPotter/sympy
def test_encipher_substitution():
    assert encipher_substitution("ABC", "BAC", symbols="ABC") == "BAC"
    assert encipher_substitution("123", "124", symbols="1234") == "124"
コード例 #2
0
ファイル: test_crypto.py プロジェクト: vishalbelsare/sympy
def test_encipher_substitution():
    assert encipher_substitution("ABC", "BAC", "ABC") == "BAC"
    assert encipher_substitution("123", "1243", "1234") == "124"