Correct description of how to fail tests
Fixes Homebrew/homebrew#33463.
This commit is contained in:
parent
f29376c867
commit
d3ae3419a9
@ -398,8 +398,8 @@ class ExampleFormula < Formula
|
|||||||
assert_equal "result", stdout.read
|
assert_equal "result", stdout.read
|
||||||
end
|
end
|
||||||
|
|
||||||
# If an exception is raised (e.g. by assert), or if we return false, or if
|
# The test will fail if it returns false, or if an exception is raised.
|
||||||
# the command run by `system` prints to stderr, we consider the test failed.
|
# Failed assertions and failed `system` commands will raise exceptions.
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user