diff --git a/test/hosts.bats b/test/hosts.bats index 0fec4f8..5fa791b 100644 --- a/test/hosts.bats +++ b/test/hosts.bats @@ -9,6 +9,7 @@ load test_helper @test "\`hosts\` with no arguments prints enabled rules." { run "$_HOSTS" + [[ "${#lines[@]}" -eq 4 ]] [[ "${lines[0]}" == "127.0.0.1 localhost" ]] [[ "${lines[1]}" == "255.255.255.255 broadcasthost" ]] [[ "${lines[2]}" == "::1 localhost" ]]