Sha256: 9b2c8139c64efa1a0bd92be1dfd7eb739e36ceab0a3dd313d8feff760a411134

Contents?: true

Size: 484 Bytes

Versions: 68

Compression:

Stored size: 484 Bytes

Contents

#!/usr/bin/env bats

@test "When given no name, it should have one for you!" {
  run bash two_fer.sh

  [ "$status" -eq 0 ]
  [ "$output" = "One for you, one for me." ]
}

@test 'When given "Alice" it should have one for Alice!' {
  run bash two_fer.sh Alice

  [ "$status" -eq 0 ]
  [ "$output" = "One for Alice, one for me." ]
}

@test 'When given "Bob" it should have one for Bob!' {
  run bash two_fer.sh Bob

  [ "$status" -eq 0 ]
  [ "$output" = "One for Bob, one for me." ]
}

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
trackler-2.2.1.66 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.65 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.64 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.63 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.62 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.61 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.60 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.59 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.58 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.57 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.56 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.55 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.54 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.53 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.52 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.51 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.50 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.49 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.48 tracks/bash/exercises/two-fer/two_fer_test.sh
trackler-2.2.1.47 tracks/bash/exercises/two-fer/two_fer_test.sh