Sha256: f0371fa8e87054064587deb113f8bb4523dea768fbbc55ecd6e8811a9ec65278
Contents?: true
Size: 783 Bytes
Versions: 13
Compression:
Stored size: 783 Bytes
Contents
@test "When given no name, it should greet the world!" { run bash hello_world.sh [ "$status" -eq 0 ] [ "$output" = "Hello, World!" ] } @test 'When given "Alice" it should greet Alice!' { run bash hello_world.sh Alice [ "$status" -eq 0 ] [ "$output" = "Hello, Alice!" ] } @test 'When given "Bob" it should greet Bob!' { run bash hello_world.sh Bob [ "$status" -eq 0 ] [ "$output" = "Hello, Bob!" ] } @test 'When given an empty string it should have a space and punctuation, though admittedly this is strange.' { run bash hello_world.sh "" [ "$status" -eq 0 ] [ "$output" = "Hello, !" ] } @test 'When given "Alice and Bob" it greets them both' { run bash hello_world.sh Alice and Bob [ "$status" -eq 0 ] [ "$output" = "Hello, Alice and Bob!" ] }
Version data entries
13 entries across 13 versions & 1 rubygems