Skip to content

Commit ecd9a17

Browse files
committed
add pending test for losless data parsing in isa json
1 parent e5e666e commit ecd9a17

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/Json/Data.Tests.fs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ let isa_tests = testList "ISAJson" [
1818
let json = Data.ISAJson.encoder d |> Encode.toJsonString 2
1919
let d2 = Decode.fromJsonString Data.ISAJson.decoder json
2020
Expect.equal d2 d "Different after write and read"
21+
ptestCase "AllFieldsLossless" <| fun _ ->
22+
let d = Data("MyID","MyName",DataFile.RawDataFile,"text/csv","MySelector",ResizeArray [Comment.create("MyKey","MyValue")])
23+
let json = Data.ISAJson.encoder d |> Encode.toJsonString 2
24+
let d2 = Decode.fromJsonString Data.ISAJson.decoder json
25+
Expect.equal d2 d "Different after write and read"
2126
#if !FABLE_COMPILER_PYTHON
2227
testAsync "WriterSchemaCorrectness" {
2328
let d = Data("MyID","MyName",DataFile.RawDataFile, "text/csv", "MySelector", ResizeArray [Comment.create("MyKey","MyValue")])

0 commit comments

Comments
 (0)