# -*- coding: utf-8 -*-

import unittest

from pangram import is_pangram


class PangramTests(unittest.TestCase):

    def test_empty_string(self):
        self.assertFalse(is_pangram(''))

    def test_valid_pangram(self):
        self.assertTrue(
            is_pangram('the quick brown fox jumps over the lazy dog'))

    def test_missing_x(self):
        self.assertFalse(is_pangram('a quick movement of the enemy will '
                                    'jeopardize five gunboats'))

    def test_another_missing_character(self):
        self.assertFalse(
            is_pangram('the quick brown fish jumps over the lazy dog'))

    def test_pangram_with_underscores(self):
        self.assertTrue(
            is_pangram("the_quick_brown_fox_jumps_over_the_lazy_dog"))

    def test_pangram_with_numbers(self):
        self.assertTrue(
            is_pangram("the 1 quick brown fox jumps over the 2 lazy dogs"))

    def test_missing_letters_replaced_by_numbers(self):
        self.assertFalse(
            is_pangram("7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog"))

    def test_mixedcase_and_punctuation(self):
        self.assertTrue(is_pangram('"Five quacking Zephyrs jolt my wax bed."'))

    def test_unchecked_german_umlaute(self):
        self.assertTrue(is_pangram('Victor jagt zwölf Boxkämpfer quer über den'
                                   ' großen Sylter Deich.'))


if __name__ == '__main__':
    unittest.main()

@@ -1,29 +1,4 @@
-# -*- coding: utf-8 -*-%0A%0A
 impo
@@ -43,16 +43,92 @@
 ngram%0A%0A%0A
+# test cases adapted from %60x-common//canonical-data.json%60 @ version: 1.0.0%0A%0A
 class Pa
@@ -158,17 +158,16 @@
 tCase):%0A
-%0A
     def 
@@ -175,20 +175,22 @@
 est_
-empty_string
+sentence_empty
 (sel
@@ -252,21 +252,36 @@
 est_
-valid_
 pangram
+_with_only_lower_case
 (sel
@@ -402,16 +402,26 @@
 missing_
+character_
 x(self):
@@ -438,32 +438,45 @@
 elf.assertFalse(
+%0A            
 is_pangram('a qu
@@ -508,29 +508,16 @@
  will '%0A
-             
         
@@ -599,16 +599,18 @@
 haracter
+_x
 (self):%0A
@@ -801,17 +801,17 @@
 pangram(
-%22
+'
 the_quic
@@ -845,17 +845,17 @@
 lazy_dog
-%22
+'
 ))%0A%0A    
@@ -939,17 +939,17 @@
 pangram(
-%22
+'
 the 1 qu
@@ -988,17 +988,17 @@
 azy dogs
-%22
+'
 ))%0A%0A    
@@ -1098,17 +1098,17 @@
 pangram(
-%22
+'
 7h3 qu1c
@@ -1142,17 +1142,17 @@
 lazy dog
-%22
+'
 ))%0A%0A    
@@ -1160,16 +1160,29 @@
 ef test_
+pangram_with_
 mixedcas
@@ -1305,31 +1305,58 @@
 st_u
-nchecked_german_umlau
+pper_and_lower_case_versions_of_the_same_charac
 te
+r
 (sel
@@ -1382,126 +1382,83 @@
 sert
-True(is_pangram('Victor jagt zw%C3%B6lf Boxk%C3%A4mpfer quer %C3%BCber den'%0A                                   ' gro%C3%9Fen Sylter Deich.
+False(%0A            is_pangram('the quick brown fox jumped over the lazy FOX
 '))%0A

Update test cases (#442)