Sha256: b4d56ec01191e0130c46c927e21e8662b7050a5387e4d8a3d43b6daa2633dea9

Contents?: true

Size: 634 Bytes

Versions: 8

Compression:

Stored size: 634 Bytes

Contents

#!/usr/bin/env bats

@test "An empty string" {
  #skip
  run bash reverse_string.sh

  [ "$status" -eq 0 ]
  [ "$output" = "" ]
}

@test "A word" {
  skip
  run bash reverse_string.sh robot

  [ "$status" -eq 0 ]
  [ "$output" = "tobor" ]
}

@test "A capitalised word" { 
  skip
  run bash reverse_string.sh Ramen

  [ "$status" -eq 0 ]
  [ "$output" = "nemaR" ]
}

@test "A sentence with punctuation" { 
  skip
  run bash reverse_string.sh "I'm hungry!"

  [ "$status" -eq 0 ]
  [ "$output" = "!yrgnuh m'I" ]
}

@test "A palindrome" { 
  skip
  run bash reverse_string.sh racecar

  [ "$status" -eq 0 ]
  [ "$output" = "racecar" ]
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trackler-2.2.1.87 tracks/bash/exercises/reverse-string/reverse_string_test.sh
trackler-2.2.1.86 tracks/bash/exercises/reverse-string/reverse_string_test.sh
trackler-2.2.1.85 tracks/bash/exercises/reverse-string/reverse_string_test.sh
trackler-2.2.1.84 tracks/bash/exercises/reverse-string/reverse_string_test.sh
trackler-2.2.1.83 tracks/bash/exercises/reverse-string/reverse_string_test.sh
trackler-2.2.1.82 tracks/bash/exercises/reverse-string/reverse_string_test.sh
trackler-2.2.1.81 tracks/bash/exercises/reverse-string/reverse_string_test.sh
trackler-2.2.1.80 tracks/bash/exercises/reverse-string/reverse_string_test.sh