Files
anki-static/AnkiStatic.Test/TestJson.fs
patrick 73a0342291
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/all-checks-complete Pipeline was successful
Simplify flake (#9)
Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com>
Reviewed-on: #9
2024-05-31 23:33:46 +00:00

21 lines
433 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
()