blob: 32acc01abbbcba534d2d777573dc7769fe7df044 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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"
}
@test "invoke without a hostname argument" {
run problem-7.sh
assert_failure "error: a hostname is required"
}
#@test "invoke with multiple hostnames" {
#run problem-7.sh localhost invalid
#assert_success $'localhost is on the network\ninvalid is NOT on the network'
#}
|