Skip to content

Commit

Permalink
Expose the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Mar 18, 2020
1 parent 30ec446 commit d79492e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/FsCodec.SystemTextJson.Tests/CodecTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ let roundtrips value =
| AO e -> "AO",Choice2Of2 e
| B e -> "B", Choice1Of2 e
| BO e -> "BO",Choice2Of2 e
// TODO remove skip here to make it fail
let encoded, skip =
let encoded =
match embedded with
| Choice1Of2 e -> elementEncoder.Encode e,false
| Choice2Of2 eo -> elementEncoder.Encode eo, eo.opt = Some null
if skip then () else
| Choice1Of2 e -> elementEncoder.Encode e
| Choice2Of2 eo -> elementEncoder.Encode eo
let enveloped = { d = encoded }

// the options should be irrelevant, but use the defaults (which would add nulls in that we don't want if it was leaking)
Expand Down

0 comments on commit d79492e

Please sign in to comment.