Files
anki-static/AnkiStatic.Test/TestJson.fs
Smaug123 98014df27d
All checks were successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/all-checks-complete Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful
Add JSON
2023-09-08 19:08:51 +01:00

21 lines
430 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.deserialise json |> JsonCollection.toInternal
()