Zaid-Ajaj / LiteDB.FSharp

Advanced F# Support for LiteDB, an embedded NoSql database for .NET with type-safe query expression through F# quotations
MIT License
180 stars 22 forks source link

(de)serialization of record with tuple datas not works #62

Closed humhei closed 3 years ago

humhei commented 3 years ago
    testCase "Bson (de)serialization of tuple data works" <| fun _ ->
      let record = {id = 1; tuple = ("Mike", 30) }
      let doc = Bson.serialize record
      match Bson.deserialize<RecordWithTuple> doc with
      | { id = 1; tuple = ("Mike", 30) } -> pass()
      | otherwise -> fail()

This test get failed