Sha256: fef94cf5663fdb616fa5f6142507738a3e14a26357dfe3b0202f0b4c18fab8c6

Contents?: true

Size: 443 Bytes

Versions: 200

Compression:

Stored size: 443 Bytes

Contents

#!/usr/bin/env bats

@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!" ]
}

Version data entries

200 entries across 200 versions & 1 rubygems

Version Path
trackler-2.1.0.20 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.19 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.18 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.17 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.16 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.15 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.14 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.13 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.12 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.11 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.10 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.9 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.8 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.7 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.6 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.5 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.4 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.3 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.2 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.1 tracks/bash/exercises/hello-world/hello_world_test.sh