Sha256: e32b0a22d30de1e385e008faddea2cd332236cc790be2d2a91d5e10a96852382
Contents?: true
Size: 1.23 KB
Versions: 81
Compression:
Stored size: 1.23 KB
Contents
#!/usr/bin/env bats @test "sentence empty" { run bash pangram.sh "" [ "$status" -eq 1 ] } @test "pangram with only lower case" { run bash pangram.sh "the quick brown fox jumps over the lazy dog" [ "$status" -eq 0 ] } @test "missing character 'x'" { run bash pangram.sh "a quick movement of the enemy will jeopardize five gunboats" [ "$status" -eq 1 ] } @test "another missing character 'x'" { run bash pangram.sh "the quick brown fish jumps over the lazy dog" [ "$status" -eq 1 ] } @test "pangram with underscores" { run bash pangram.sh "the_quick_brown_fox_jumps_over_the_lazy_dog" [ "$status" -eq 0 ] } @test "pangram with numbers" { run bash pangram.sh "the 1 quick brown fox jumps over the 2 lazy dogs" [ "$status" -eq 0 ] } @test "missing letters replaced by numbers" { run bash pangram.sh "7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog" [ "$status" -eq 1 ] } @test "pangram with mixed case and punctuation" { run bash pangram.sh "Five quacking Zephyrs jolt my wax bed." [ "$status" -eq 0 ] } @test "upper and lower case versions of the same character should not be counted separately" { run bash pangram.sh "the quick brown fox jumped over the lazy FOX" [ "$status" -eq 1 ] }
Version data entries
81 entries across 81 versions & 1 rubygems