Skip to content

Conversation

@n0vember
Copy link
Contributor

a regular action when testing scripts is to test generated files to match a valid content. This is often done using assert with the following line:

assert "diff 'path/to/exepected file' 'path/to/generated file'"

newly assertion tool assert_no_diff makes intention clearer by using the following syntax:

assert_no_diff "path/to/expected file" "path/to/generated file"

goal is to make visible that:

  • what is expected is that there is no difference
  • what is compared are two files

n0vember and others added 4 commits October 14, 2021 00:50
a regular action when testing scripts is to test generated files to match a valid content. This is often done using assert with the following line:
assert "diff 'path/to/exepected file' 'path/to/generated file'"
newly assertion tool assert_no_diff makes intention clearer by using the following syntax:
assert_no_diff "path/to/expected file" "path/to/generated file"
goal is to make clearer the facts that:
- what is expected is that there is no difference
- what is compared are two files
env usage in shebang line was not compatible with env as provided by coreutils 9.0. If arguments are to be passed to the command given to env, -S option is to be used.
@pgrange pgrange merged commit 691b79d into bash-unit:master Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants