Initial commit

This commit is contained in:
Smaug123
2023-02-04 19:55:38 +00:00
commit ef9c792e64
29 changed files with 71565 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
namespace CipherSuite.Test
open NUnit.Framework
open CipherSuite
open FsUnitTyped
[<TestFixture>]
module TestCaesar =
[<Test>]
let ``Examples, Challenge 1`` () =
let key, plain, fitness = Caesar.crack Examples.challenge1A
plain.StartsWith "I WAS HOPING I WOULD FIND YOU HERE" |> shouldEqual true
printfn "%f" fitness
key |> shouldEqual 6
let key, plain, fitness = Caesar.crack Examples.challenge1B
plain.StartsWith "DEAR MS FRANK," |> shouldEqual true
key |> shouldEqual 18