Git Product home page Git Product logo

Comments (3)

ko1nksm avatar ko1nksm commented on May 13, 2024 1

I've created issue #72 for Assert.

The status of function assert_abc should be success

is possible, But I want to distinguish it from The "status" should and if we implement The status of function, we will want The stdout of function or The stderr of function. I want to avoid it.

The result of 'assert_abc()' should be successful

Oh, be successful... English is difficult for me. 😟

If there is no strong opposition, I will implement be successful. Or accept PR.

from shellspec.

ko1nksm avatar ko1nksm commented on May 13, 2024

Thanks for the good suggestions.

Actually, you should be able to do the same with

The result of function assert_abc should be defined
The result of 'assert_abc()' should be defined # shorthand

Because if the function returns non-zero, the stdout will be undefined (internally, unset SHELLSPEC_SUBJECT). However, I don't think the meaning is clear as a sentence.

How about this instead?

The result of 'assert_abc()' should succeeded

Or is there a better suggestion?

BTW, I am thinking of introducing Assert as another way. I will create issue later.

Assert func arg1 arg2 arg3

from shellspec.

kjkuan avatar kjkuan commented on May 13, 2024

well, I think

The status of function assert_abc should be success

is better :)

But, if that's not possible, then maybe:

The result of 'assert_abc()' should be successful

?
But if you have Assert then that would be the best solution for me.

from shellspec.

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.