Skip to content

Commit c354220

Browse files
MichaelBitardpgrange
authored andcommitted
fix minor typos (#33)
1 parent d38b110 commit c354220

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ Running test_code_does_not_write_this_in_the_file... SUCCESS
313313

314314
Checks for a precise status code of the evaluation of *assertion*.
315315

316-
It may be usefull if you want to distinguish between several error conditions in your code.
316+
It may be useful if you want to distinguish between several error conditions in your code.
317317

318318
In case of failure, the standard output and error of the evaluated *assertion* is displayed. The optional message is also displayed.
319319

@@ -385,7 +385,7 @@ Running test_obvious_inequality_with_assert_not_equals... SUCCESS
385385

386386
fake <command> [replacement code]
387387

388-
Fakes *command* and replaces it with *replacement code* (if code is specified) for the rest of the execution of your test. If no replacement code is specified, then it replaces command by one that echoes stdin of fake. This may be usefull if you need to simulate an environment for you code under test.
388+
Fakes *command* and replaces it with *replacement code* (if code is specified) for the rest of the execution of your test. If no replacement code is specified, then it replaces command by one that echoes stdin of fake. This may be useful if you need to simulate an environment for you code under test.
389389

390390
For instance:
391391

@@ -520,7 +520,7 @@ overriden by a function. For instance if your code under test relies on *exec* t
520520

521521
*fake* stores parameters given to the fake in the global variable *FAKE_PARAMS* so that you can use them inside your fake.
522522

523-
It may be usefull if you need to adapt the behavior on the given parameters.
523+
It may be useful if you need to adapt the behavior on the given parameters.
524524

525525
It can also help in asserting the values of these parameters... but this may be quite tricky.
526526

bash_unit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ usage() {
157157
echo "$0 [-f <output format>] [-p <pattern1>] [-p <pattern2>]... <test_file1> <test_file2>..." >&2
158158
echo >&2
159159
echo "Runs tests in test files that match <pattern>s" >&2
160-
echo "<output format> is optionnal only supported value is tap" >&2
160+
echo "<output format> is optional only supported value is tap" >&2
161161
echo "-v to get current version information" >&2
162162
echo "See https://github.com/pgrange/bash_unit" >&2
163163
exit 1

0 commit comments

Comments
 (0)