Move to Project.toml, bump to Julia v1 (#18)

This commit is contained in:
Patrick Stevens
2019-09-12 19:18:28 +01:00
committed by GitHub
parent 3196694bc1
commit 2a0eb5c630
24 changed files with 128 additions and 105 deletions

View File

@@ -1,5 +1,5 @@
using ClassicalCiphers
using Base.Test
using Test
# doc examples
@test encrypt_vigenere("ab", [0, 1]) == "AC"
@@ -9,7 +9,7 @@ using Base.Test
# others
@test decrypt_vigenere("DYIMXMESTEZDPNFVVAMJ", [11, 18, 5, 13, 12, 9, 14]-1) == "theamericanshaverobb"
@test decrypt_vigenere("DYIMXMESTEZDPNFVVAMJ", map(x -> x - 1, [11, 18, 5, 13, 12, 9, 14])) == "theamericanshaverobb"
@test decrypt_vigenere("DYIMXMESTEZDPNFVVAMJ", "kremlin") == "theamericanshaverobb"