We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8de46cc commit d914a1eCopy full SHA for d914a1e
tests/helper/diff_helper.bash
@@ -1,12 +1,11 @@
1
#!/usr/bin/env bash
2
3
-# ファイルが一致するかどうかを確認する関数
4
assert_files_match() {
5
local generated_file="./$BASE_HOST$1"
6
local fixture_file="./fixture/$BASE_HOST$1"
7
8
diff_output=$(diff "$generated_file" "$fixture_file")
9
diff_status=$?
10
11
- [ "$diff_status" -eq 0 ] # diff コマンドが0を返した場合、ファイルは一致しています
+ [ "$diff_status" -eq 0 ]
12
}
0 commit comments