From 19cfbbb68d1366088a1f60a6f502271286af16c0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 14 Jun 2018 20:38:20 +1000 Subject: [PATCH] added missing test --- test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test.sh b/test.sh index 32a301f..bcf4b17 100755 --- a/test.sh +++ b/test.sh @@ -68,6 +68,13 @@ test_tail() { rm test_file } +test_lines() { + printf '\n\n\n\n\n\n\n\n' > test_file + result="$(lines test_file)" + assert_equals "$result" "8" + rm test_file +} + test_count() { result="$(count ./{README.m,LICENSE.m,.travis.ym}*)" assert_equals "$result" "3" @@ -133,6 +140,7 @@ main() { test_cycle test_head test_tail + test_lines test_count test_dirname test_basename