mirror of
https://github.com/manios/docker-nagios.git
synced 2026-01-24 02:35:48 +00:00
12 lines
No EOL
195 B
Bash
12 lines
No EOL
195 B
Bash
#!/usr/bin/env bats
|
|
|
|
/opt/nagios
|
|
@test "addition using bc" {
|
|
result="$(echo 2+2 | bc)"
|
|
[ "$result" -eq 4 ]
|
|
}
|
|
|
|
@test "addition using dc" {
|
|
result="$(echo 2 2+p | dc)"
|
|
[ "$result" -eq 4 ]
|
|
} |