Initial commit
This commit is contained in:
14
bash/hello-world/hello_world.bats
Normal file
14
bash/hello-world/hello_world.bats
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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!"
|
||||
}
|
||||
Reference in New Issue
Block a user