Sha256: 090e3d5eed38aedb7963d7fae036fab179db38b9f43f09e987fee02219fc71e5
Contents?: true
Size: 643 Bytes
Versions: 20
Compression:
Stored size: 643 Bytes
Contents
#!/usr/bin/env bats @test "correct arguments" { #skip run bash error_handling.sh Alice [ "$status" -eq 0 ] [ "$output" = "Hello, Alice" ] } @test "one long argument" { skip run bash error_handling.sh "Alice and Bob" [ "$status" -eq 0 ] [ "$output" = "Hello, Alice and Bob" ] } @test "incorrect arguments" { skip run bash error_handling.sh Alice Bob [ "$status" -ne 0 ] } @test "use errexit" { skip source error_handling.sh [ echo $SHELLOPTS | grep -q 'errexit' ] } @test "use nounset" { skip source error_handling.sh [ echo $SHELLOPTS | grep -q 'nounset' ] }
Version data entries
20 entries across 20 versions & 1 rubygems