Sha256: 93b4deec73775d5fc1649badbce70d459ac52ce5ea0f2c9f040e49d822361da2

Contents?: true

Size: 1.14 KB

Versions: 25

Compression:

Stored size: 1.14 KB

Contents

import unittest

from pangram import is_pangram


test "sentence empty":
    check is_pangram("") == false

test "recognizes a perfect lower case pangram":
    check is_pangram("abcdefghijklmnopqrstuvwxyz") == true

test "test pangram with only lower case":
    check is_pangram("the quick brown fox jumps over the lazy dog") == true

test "missing character x":
    check is_pangram("a quick movement of the enemy will jeopardize five gunboats") == false

test "another missing character":
    check is_pangram("five boxing wizards jump quickly at it") == false

test "pangram with underscores":
    check is_pangram("the_quick_brown_fox_jumps_over_the_lazy_dog") == true

test "pangram with numbers":
    check is_pangram("the 1 quick brown fox jumps over the 2 lazy dogs") == true

test "missing letters replaced by numbers":
    check is_pangram("7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog") == false

test "pangram with mixedcase and punctuation":
    check is_pangram("Five quacking Zephyrs jolt my wax bed.") == true

test "upper and lower case versions of the same character":
    check is_pangram("the quick brown fox jumped over the lazy FX") == false

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.158 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.157 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.156 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.155 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.154 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.153 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.152 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.151 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.150 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.149 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.148 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.147 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.146 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.145 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.144 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.143 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.142 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.141 tracks/nim/exercises/pangram/pangram_test.nim
trackler-2.2.1.140 tracks/nim/exercises/pangram/pangram_test.nim