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

Update README.mdfrom1 #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update README.mdfrom1 #44

wants to merge 1 commit into from

Conversation

Golf88cw
Copy link

@Golf88cw Golf88cw commented Dec 2, 2023

test "Show welcome message on first invocation" {
run project.sh
assert_output --partial 'Welcome to our project!'

run project.sh
refute_output --partial 'Welcome to our project!'

}
This test fails as expected:

$ ./test/bats/bin/bats test/test.bats
✗ Show welcome message on first invocation
(from function refute_output' in file test/test_helper/bats-assert/src/refute_output.bash, line 189, in test file test/test.bats, line 17) refute_output --partial 'Welcome to our project!'' failed

-- output should not contain substring --
substring (1 lines):
Welcome to our project!
output (2 lines):
Welcome to our project!
NOT IMPLEMENTED!

1 test, 1 failure

test "Show welcome message on first invocation" {
    run project.sh
    assert_output --partial 'Welcome to our project!'

    run project.sh
    refute_output --partial 'Welcome to our project!'
}
This test fails as expected:

$ ./test/bats/bin/bats test/test.bats
 ✗ Show welcome message on first invocation
   (from function `refute_output' in file test/test_helper/bats-assert/src/refute_output.bash, line 189,
    in test file test/test.bats, line 17)
     `refute_output --partial 'Welcome to our project!'' failed

   -- output should not contain substring --
   substring (1 lines):
     Welcome to our project!
   output (2 lines):
     Welcome to our project!
     NOT IMPLEMENTED!
   --


1 test, 1 failure
Copy link

@gdamiaN538 gdamiaN538 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#44 +update_stream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants