namespace AnkiStatic.Test open System open AnkiStatic open FsUnitTyped open NUnit.Framework open System.Text open System.Security.Cryptography [] module Tests = [] let ``Checksum matches`` (str : string, expected : uint32) = let data : Note = { Guid = 0uL ModelId = () LastModified = DateTimeOffset.UnixEpoch UpdateSequenceNumber = 0 Tags = [] Fields = [ str ] SortField = Choice2Of2 0 Flags = 0 Data = "" } // Obtained from reading an example in the wild data.Checksum |> shouldEqual expected