Closed jakewilliami closed 3 years ago
julia> crack_monoalphabetic("93ee90299") ERROR: MethodError: no method matching #crack_monoalphabetic#15(::String, ::Float64, ::Float64, ::ClassicalCiphers.var"#17#20", ::Int64, ::Int64, ::typeof(crack_monoalphabetic), ::String) Closest candidates are: #crack_monoalphabetic#15(::AbstractString, ::AbstractFloat, ::AbstractFloat, ::AbstractFloat, ::Integer, ::Integer, ::typeof(crack_monoalphabetic), ::Any) at /Users/jakeireland/.julia/packages/ClassicalCiphers/VPcNx/src/monoalphabetic.jl:172 Stacktrace: [1] crack_monoalphabetic(::String) at /Users/jakeireland/.julia/packages/ClassicalCiphers/VPcNx/src/monoalphabetic.jl:182
The main cause of this bug was two type errors I made in b3acd44. This went unnoticed as there were no tests for crack_monoalphabetic, so I will add some now.
crack_monoalphabetic