@@ -76,9 +76,9 @@ To run tests, simply call *bash_unit* with all your tests files as parameter. Fo
7676Running tests in tests/test_core.sh
7777Running test_assert_equals_fails_when_not_equal... SUCCESS
7878Running test_assert_equals_succeed_when_equal... SUCCESS
79- Running test_assert_fail_fails... SUCCESS
80- Running test_assert_fail_succeeds... SUCCESS
8179Running test_assert_fails... SUCCESS
80+ Running test_assert_fails_fails... SUCCESS
81+ Running test_assert_fails_succeeds... SUCCESS
8282Running test_assert_not_equals_fails_when_equal... SUCCESS
8383Running test_assert_not_equals_succeeds_when_not_equal... SUCCESS
8484Running test_assert_shows_stderr_on_failure... SUCCESS
@@ -108,9 +108,9 @@ functions against this pattern.
108108Running tests in tests/test_core.sh
109109Running test_assert_equals_fails_when_not_equal... SUCCESS
110110Running test_assert_equals_succeed_when_equal... SUCCESS
111- Running test_assert_fail_fails... SUCCESS
112- Running test_assert_fail_succeeds... SUCCESS
113111Running test_assert_fails... SUCCESS
112+ Running test_assert_fails_fails... SUCCESS
113+ Running test_assert_fails_succeeds... SUCCESS
114114Running test_assert_not_equals_fails_when_equal... SUCCESS
115115Running test_assert_not_equals_succeeds_when_not_equal... SUCCESS
116116Running test_assert_shows_stderr_on_failure... SUCCESS
@@ -132,9 +132,9 @@ output with the _-f_ option.
132132# Running tests in tests/test_core.sh
133133ok - test_assert_equals_fails_when_not_equal
134134ok - test_assert_equals_succeed_when_equal
135- ok - test_assert_fail_fails
136- ok - test_assert_fail_succeeds
137135ok - test_assert_fails
136+ ok - test_assert_fails_fails
137+ ok - test_assert_fails_succeeds
138138ok - test_assert_not_equals_fails_when_equal
139139ok - test_assert_not_equals_succeeds_when_not_equal
140140ok - test_assert_shows_stderr_on_failure
@@ -287,13 +287,13 @@ code() {
287287test_code_does_not_write_cool_in_the_file() {
288288 code
289289
290- assert_fail "grep cool /tmp/the_file" "should not write 'cool' in /tmp/the_file"
290+ assert_fails "grep cool /tmp/the_file" "should not write 'cool' in /tmp/the_file"
291291}
292292
293293test_code_does_not_write_this_in_the_file() {
294294 code
295295
296- assert_fail "grep this /tmp/the_file" "should not write 'this' in /tmp/the_file"
296+ assert_fails "grep this /tmp/the_file" "should not write 'this' in /tmp/the_file"
297297}
298298```
299299
@@ -444,7 +444,7 @@ test_code_fails_if_apache_does_not_run() {
44444424162 pts/7 00:00:00 ps
445445EOF
446446
447- assert_fail code "code should fail when apache is not running"
447+ assert_fails code "code should fail when apache is not running"
448448}
449449
450450```
0 commit comments