File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# In this example, we want to test the specific functions of a script.
22# So we source this script in setup_suite.
33# However, we don't want the script to be executed when sourcing it,
4- # we are only interested in having access to the functions to tests
4+ # we are only interested in having access to the functions to test
55# them.
6- # To do so, we adapt the script under test so that it's main code
6+ # To do so, we adapt the script under test so that its main code
77# is not executed when sourcing it.
8- # See ../hello_i18n how we define a main function to encapsulate
8+ # See in ../hello_i18n how we define a main function to encapsulate
99# all the main code and the main function is only called when the
10- # script itself is launched, not when it is sourced
10+ # script itself is launched, not when it is sourced.
1111
1212test_can_say_hi_in_french() {
1313 assert_equals "Bonjour le monde" "$(hello fr)"
You can’t perform that action at this time.
0 commit comments