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