projects
/
szyfrow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor documentation updates
[szyfrow.git]
/
tests
/
test_column_transposition.py
diff --git
a/tests/test_column_transposition.py
b/tests/test_column_transposition.py
index 31b3417f3f7d51d25d4d4d20a60ea840ac8ccbbd..4639d6a704879ebf1d4c5cf35654bb6ed093ed2e 100644
(file)
--- a/
tests/test_column_transposition.py
+++ b/
tests/test_column_transposition.py
@@
-79,7
+79,7
@@
def test_column_transposition_break():
for word in 'encipher fourteen keyword'.split():
used_translist[transpositions_of(word)] += [word]
for word in 'encipher fourteen keyword'.split():
used_translist[transpositions_of(word)] += [word]
- (key, fill, empty), score = column_transposition_break
_mp
(ciphertext,
+ (key, fill, empty), score = column_transposition_break(ciphertext,
translist=used_translist)
assert key == transpositions_of(expected_key)
translist=used_translist)
assert key == transpositions_of(expected_key)
@@
-98,7
+98,7
@@
def test_scytale_break():
expected_score = Pbigrams(plaintext)
ciphertext = scytale_encipher(plaintext, expected_key)
expected_score = Pbigrams(plaintext)
ciphertext = scytale_encipher(plaintext, expected_key)
- key, score = scytale_break
_mp
(ciphertext)
+ key, score = scytale_break(ciphertext)
assert key == expected_key
assert score == pytest.approx(expected_score)
assert key == expected_key
assert score == pytest.approx(expected_score)