Skip to content

Update README.mdfrom1#44

Open
Golf88cw wants to merge 1 commit intooctocat:masterfrom
Golf88cw:patch-1
Open

Update README.mdfrom1#44
Golf88cw wants to merge 1 commit intooctocat:masterfrom
Golf88cw:patch-1

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.

3 participants