Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to do multiple assertions? #33

Closed
edouard-lopez opened this issue Dec 10, 2018 · 1 comment
Closed

Is it possible to do multiple assertions? #33

edouard-lopez opened this issue Dec 10, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@edouard-lopez
Copy link
Contributor

Is it possible to do multiple assertions?

⚠️ This doesn't work:

test "format seconds to human"
    set --local seconds 1000  # express as milliseconds
    '1s' = ( _pure_format_time (math "1*$seconds") $THRESHOLD)
    '59s' = ( _pure_format_time (math "59*$seconds") $THRESHOLD)
end

If so, how can I do it?

@jorgebucaran
Copy link
Owner

jorgebucaran commented Jan 31, 2019

@edouard-lopez No, and I won't be adding this to 2.0. Tests are almost declarative in nature, allowing for fewer bugs and you can always write your imperative code inside a command substitution.

I was too quick to make up my mind. I may actually add this to 2.0.

I'm reopening until I have figured it out.

Wontfix! 🎉

Repository owner locked and limited conversation to collaborators Jan 31, 2019
@jorgebucaran jorgebucaran reopened this Jan 31, 2019
@jorgebucaran jorgebucaran added Discussion enhancement New feature or request labels Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants