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.2.0.5 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.2.0.4 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.2.0.3 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.2.0.2 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.2.0.1 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.2.0.0 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.55 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.54 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.53 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.52 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.51 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.50 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.49 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.48 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.47 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.46 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.45 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.44 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.43 tracks/bash/exercises/hello-world/hello_world_test.sh
trackler-2.1.0.42 tracks/bash/exercises/hello-world/hello_world_test.sh