Files
anki-static/AnkiStatic.Test/TestJson.fs
patrick 4070001e55
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful
Add app (#4)
Co-authored-by: Smaug123 <patrick+github@patrickstevens.co.uk>
Reviewed-on: #4
2023-09-08 23:31:01 +00:00

23 lines
449 B
Forth

namespace AnkiStatic.Test
open NUnit.Framework
open AnkiStatic
open FsUnitTyped
[<TestFixture>]
module TestJson =
type private Dummy =
class
end
[<Test>]
let ``Can read example`` () =
let assembly = typeof<Dummy>.Assembly
let json = Utils.readResource assembly "example1.json"
let collection, notes =
JsonCollection.deserialiseString json |> JsonCollection.toInternal
()