exercism/bash/hello-world/hello_world.bats

15 lines
261 B
Bash

#!/usr/bin/env bats
load bats-extra
# local version: 1.1.0.0
@test "Say Hi!" {
run bash hello_world.sh
# the program's exit status should be success (0)
assert_success
# program's output should be the expected text
assert_output "Hello, World!"
}