Git Product home page Git Product logo

Comments (5)

luke-biel avatar luke-biel commented on August 24, 2024 1

I think I'm leaning towards [] as proposed right now. I don't think that any of these is better, but
=> ignore = "reason" "result" may be a bit confusing.

from test-case.

luke-biel avatar luke-biel commented on August 24, 2024

Hmm, yeah, it's definitelly something missing. I remember ignore comment syntax was present since 1.3x or earlier, so it shouldn't be a breaking change, we have MSRV 1.49 anyway. It just wasn't thought of.

I like your second proposal, if you have resources and time PR is welcome.

from test-case.

ijc avatar ijc commented on August 24, 2024

I assumed we want the reason to be optional, for backward compat so that existing cases do not all need updating and can still use a bare inconclusive. Given that then using () to surround the reason argument was ambiguous -- since => inconclusive () should mean a test with output () but is treated as one with an empty reason and no output specified. Similar problems exist with => inconclusive ("this is the result") where this is the result ended up as the reason not the expected result...

I went with [] instead and will open a PR in a moment, {} would be an easy change if preferred. Other things (like <>) would need more custom handling.

from test-case.

frondeus avatar frondeus commented on August 24, 2024

What about => inconclusive = "this is reason" ("this is result")? @luke-biel would that be ambiguous or/and better?

from test-case.

ijc avatar ijc commented on August 24, 2024

I think that would be unambiguous? At least I don't think there are any output matchers which start with an = (nor an == FWIW` although I don't think that would be ambiguous even if there was).

I guess it's a question of taste/style and perhaps future direction, happy to defer to you both.

from test-case.

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.