diff options
| author | mo <mo.khan@gmail.com> | 2019-05-25 19:24:44 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-25 19:24:44 -0600 |
| commit | 46ca1dabb41b6e1500f379380fb674b292d7230c (patch) | |
| tree | 5ccab638f6cd4d47f15460f7f857ff158be5c315 /test | |
| parent | 3f8ce1af3a6c6039e5eaecbf997f6939829f0c53 (diff) | |
add tests for checking if a host is on the network
Diffstat (limited to 'test')
| -rw-r--r-- | test/problem-7.bats | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/problem-7.bats b/test/problem-7.bats new file mode 100644 index 0000000..57d657a --- /dev/null +++ b/test/problem-7.bats @@ -0,0 +1,15 @@ +#!/usr/bin/env bats + +load test_helper + +@test "invoke with a host on the network" { + run problem-7.sh localhost + + assert_success "localhost is on the network" +} + +@test "invoke with a host not on the network" { + run problem-7.sh unknown + + assert_success "unknown is NOT on the network" +} |
