mirror of
https://github.com/Smaug123/ClassicalCiphers.jl
synced 2025-10-07 18:38:41 +00:00
9 lines
378 B
Julia
9 lines
378 B
Julia
using ClassicalCiphers
|
|
using Base.Test
|
|
|
|
@test encrypt_caesar("THIS CODE WAS INVENTED BY JULIUS CAESAR", 3) == "WKLV FRGH ZDV LQYHQWHG EB MXOLXV FDHVDU"
|
|
|
|
@test decrypt_caesar("WKLV FRGH ZDV LQYHQWHG EB MXOLXV FDHVDU", 3) == "this code was invented by julius caesar"
|
|
|
|
@test crack_caesar("WKLV FRGH ZDV LQYHQWHG EB MXOLXV FDHVDU") == ("this code was invented by julius caesar", 3)
|