Git Product home page Git Product logo

Comments (8)

warpfork avatar warpfork commented on June 19, 2024

Ok, I think all these are fixed on master as well.

Thank you for this heroic and excellent bug reporting!

(I'm particularly embarrassed in this case -- there were fixtures on the token side meant to cover precisely these cases... but no mappings defined on the matching the cbor side. It's to the point I should be writing tests to make sure the texts are fully filling out the $n*m$ matrix...!)

from refmt.

dignifiedquire avatar dignifiedquire commented on June 19, 2024

Thanks for the quick turn around, I have some more issues I am afraid

  • [] gets turned into nil if I round trip it
  • {"a":"IPFS","b":null,"c":[1]} gets turned into {"a":"IPFS","b":"IPFS","c":[1]} in a round trip

from refmt.

dignifiedquire avatar dignifiedquire commented on June 19, 2024

It would probably be useful to add a bunch of test vectors, making sure things work as expected. Some I have used in the past and might be useful

from refmt.

warpfork avatar warpfork commented on June 19, 2024

Sorry E_TIME_BUDGET happened a bit... I'll try to allocate some time this evening.

At first glance, these are probably issues with nil-vs-typed-nil being handled inconsistently in the obj mapper package rather than a cbor problem. So I'll be focusing on adding unit tests and fixtures there.

Those borc tools look useful...! Maybe with a little work I can rig them around the refmt CLI tool to get a lot of acceptance test coverage there. Though this might require some rather odd subcommands like refmt cbor=obj=cbor, which would have very little sensible purpose other than testing.

from refmt.

warpfork avatar warpfork commented on June 19, 2024

Fixed the issue with nulls, thanks.

I can't reproduce your issue with []. Am I missing something?

from refmt.

dignifiedquire avatar dignifiedquire commented on June 19, 2024

Thanks, I'll check it out. There is always the chance my code is the issue :)

from refmt.

dignifiedquire avatar dignifiedquire commented on June 19, 2024

Turns out the [] was an issue on our side thanks a lot for the work.

from refmt.

warpfork avatar warpfork commented on June 19, 2024

Even more test coverage is a very acceptable "problem" to have as a sideeffect :)

from refmt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.