Sha256: 72cf561a38149b39cf068e3033baacf8cfe75e5e25138aad3c8cb6a518e65804

Contents?: true

Size: 422 Bytes

Versions: 3

Compression:

Stored size: 422 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!" ]
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trackler-2.0.0.5 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.0.4 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.0.3 tracks/bash/exercises/hello-world/hello_world_test.sh