Skip to content
Snippets Groups Projects
Commit d3ae3419 authored by Jack Nagel's avatar Jack Nagel
Browse files

Correct description of how to fail tests

Fixes Homebrew/homebrew#33463.
parent f29376c8
No related branches found
No related tags found
No related merge requests found
......@@ -398,8 +398,8 @@ class ExampleFormula < Formula
assert_equal "result", stdout.read
end
# If an exception is raised (e.g. by assert), or if we return false, or if
# the command run by `system` prints to stderr, we consider the test failed.
# The test will fail if it returns false, or if an exception is raised.
# Failed assertions and failed `system` commands will raise exceptions.
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment