Added lines_loop

This commit is contained in:
Dylan Araps
2018-06-16 09:09:56 +10:00
parent 679e787bd2
commit 7e79899977
2 changed files with 27 additions and 3 deletions

View File

@@ -91,6 +91,13 @@ test_lines() {
rm test_file
}
test_lines_loop() {
printf '\n\n\n\n\n\n\n\n' > test_file
result="$(lines_loop test_file)"
assert_equals "$result" "8"
rm test_file
}
test_count() {
result="$(count ./{README.m,LICENSE.m,.travis.ym}*)"
assert_equals "$result" "3"