parent
bfe0a0bc17
commit
f41adab119
|
|
@ -102,14 +102,14 @@ function assert_file_contains() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function assert_file_lines_eq() {
|
function assert_file_lines_eq() {
|
||||||
N=$(cat "$1" | wc -l)
|
N=$(wc -l < "$1")
|
||||||
if (( "$N" != "$2" )); then
|
if (( "$N" != "$2" )); then
|
||||||
fail "$1 is not $2 lines: $N"
|
fail "$1 is not $2 lines: $N"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function assert_file_lines_ge() {
|
function assert_file_lines_ge() {
|
||||||
N=$(cat "$1" | wc -l)
|
N=$(wc -l < "$1")
|
||||||
if (( "$N" < "$2" )); then
|
if (( "$N" < "$2" )); then
|
||||||
fail "$1 is not at least $2 lines: $N"
|
fail "$1 is not at least $2 lines: $N"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue