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.0.8.36 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.35 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.34 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.33 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.32 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.31 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.30 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.29 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.28 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.27 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.26 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.24 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.23 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.22 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.21 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.20 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.19 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.18 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.17 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.0.8.16 tracks/bash/exercises/hello-world/hello_world_test.sh