Sha256: e75666dbe2da799a687153d7c7406756bffc4a15c65cd1611845f6577a06186b
Contents?: true
Size: 1.25 KB
Versions: 112
Compression:
Stored size: 1.25 KB
Contents
#!/usr/bin/env bats @test 'difference of squares 1' { #skip run bash difference_of_squares.sh 1 [ "$status" -eq 0 ] [ "$output" == 0 ] } @test 'difference of squares 5' { skip run bash difference_of_squares.sh 5 [ "$status" -eq 0 ] [ "$output" == 170 ] } @test 'difference of squares 100' { skip run bash difference_of_squares.sh 100 [ "$status" -eq 0 ] [ "$output" == 25164150 ] } # Bonus! Add flags for individual functions @test 'square of sum 1' { skip run bash difference_of_squares.sh 1 -S [ "$status" -eq 0 ] [ "$output" == 1 ] } @test 'square of sum 5' { skip run bash difference_of_squares.sh 5 -S [ "$status" -eq 0 ] [ "$output" == 225 ] } @test 'square of sum 100' { skip run bash difference_of_squares.sh 100 -S [ "$status" -eq 0 ] [ "$output" == 25502500 ] } @test 'sum of squares 1' { skip run bash difference_of_squares.sh 1 -s [ "$status" -eq 0 ] [ "$output" == 1 ] } @test 'sum of squares 5' { skip run bash difference_of_squares.sh 5 -s [ "$status" -eq 0 ] [ "$output" == 55 ] } @test 'sum of squares 100' { skip run bash difference_of_squares.sh 100 -s [ "$status" -eq 0 ] [ "$output" == 338350 ] }
Version data entries
112 entries across 112 versions & 1 rubygems