Sha256: 4de72ffed3be93f6720ca463ff9a8eb2f3219f8e8d758b336f520bdffb8b423f

Contents?: true

Size: 1.09 KB

Versions: 9

Compression:

Stored size: 1.09 KB

Contents

#!/usr/bin/env bats

@test 'Single digits are armstrong numbers' {
  #skip
  run ./armstrong_numbers.sh isarmstrong 5

  [ "$status" -eq 0 ]
}

@test 'There are no two digit armstrong numbers' {
  skip
  run ./armstrong_numbers.sh isarmstrong 10

  [ "$status" -eq 1 ]
}

@test 'A three digit number that is an armstrong number' {
  skip
  run ./armstrong_numbers.sh isarmstrong 153

  [ "$status" -eq 0 ]
}

@test 'A three digit number that is not an armstrong number' {
  skip
  run ./armstrong_numbers.sh isarmstrong 100 

  [ "$status" -eq 1 ]
}

@test 'A four digit number that is an armstrong number' {
  skip
  run ./armstrong_numbers.sh isarmstrong 9475 

  [ "$status" -eq 0 ]
}

@test 'A four digit number that is not an armstrong number' {
  skip
  run ./armstrong_numbers.sh isarmstrong 9475 

  [ "$status" -eq 1 ]
}

@test 'A seven digit number that is an armstrong number' {
  skip
  run ./armstrong_numbers.sh isarmstrong 9926315 

  [ "$status" -eq 0 ]
}

@test 'A seven digit number that is not an armstrong number' {
  skip
  run ./armstrong_numbers.sh isarmstrong 9926314 

  [ "$status" -eq 1 ]
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
trackler-2.2.1.85 tracks/bash/exercises/armstrong-numbers/armstrong_numbers_test.sh
trackler-2.2.1.84 tracks/bash/exercises/armstrong-numbers/armstrong_numbers_test.sh
trackler-2.2.1.83 tracks/bash/exercises/armstrong-numbers/armstrong_numbers_test.sh
trackler-2.2.1.82 tracks/bash/exercises/armstrong-numbers/armstrong_numbers_test.sh
trackler-2.2.1.81 tracks/bash/exercises/armstrong-numbers/armstrong_numbers_test.sh
trackler-2.2.1.80 tracks/bash/exercises/armstrong-numbers/armstrong_numbers_test.sh
trackler-2.2.1.79 tracks/bash/exercises/armstrong-numbers/armstrong_numbers_test.sh
trackler-2.2.1.78 tracks/bash/exercises/armstrong-numbers/armstrong_numbers_test.sh
trackler-2.2.1.77 tracks/bash/exercises/armstrong-numbers/armstrong_numbers_test.sh