Exemplo n.º 1
0
    def test_complex_string_with_long_length(self):
        self.assertIs(
            is_pangram(
                """Today was a difficult day. Golu but you still handed it really well. Days like these pass and all you
can do is to keep yourself occupied and look ahead for better times.
To handle so much solitude all alone make you tougher from inside and it's changing you but heroes
don't complain.
Everybody in our family has problems and difficulties. You are not the only one. Inface you are not
having any major responsibility.
God. Please give me some.
Universe is a very strange place. It doesn't work according to our thoughts or feelings and neither we
are the center of it. This is a hard fact and we should accept is Now.
Nothing really matter in the end and when your life will be coming to an end Golu do you think the
problems you think you have in Argentina will even matter?
Think about it for a second.

What happened to you in school, infosys or prasad is the past and you don't remember anything now. Correct? So what do you fear? Just be yourself and do as much as you can with a good hardworking attitude.
All rest will fall into place.
Don't let some small failures affect you as you have gained so much here. Do not procrastinate and work
very hard. Let's accept this right now itself.
ACTIONS SPEAK A THOUSAND TIMES LOUDER THAN WORDS.
We should be acting fast and quick without wasting minutes. This is it.

From this moment onwards. Stop crumbling and start acting towards your dreams and goals. Take small steps no matter how small they are. You are good at learning and taking criticism. Thinks will click in no time. Be fearless and bold. You are a courageous man. So don't let anything deter you.

Act on small things that you learn rather than putting things on the back burner. It's really now in themoment or never. Life is really what is happening to us now.
I don't have much to say here as you already know a lot. We are together in this. Lets fight it out together. Now go and take rest.
I'm with you.

Your inner voice.
"""), False)
Exemplo n.º 2
0
 def test_perfect_lower_case(self):
     self.assertIs(is_pangram("abcdefghijklmnopqrstuvwxyz"), True)
Exemplo n.º 3
0
 def test_basic2_negative(self):
     sentence = 'Two driven jocks hel fax my big quiz'
     self.assertEqual(False, is_pangram(sentence))
Exemplo n.º 4
0
 def test_sentence_empty(self):
     self.assertIs(is_pangram(''), False)
Exemplo n.º 5
0
def test_sentence_empty():
    assert not is_pangram('')
Exemplo n.º 6
0
def test_pangram_with_numbers():
    assert is_pangram('the 1 quick brown fox jumps over the 2 lazy dogs')
Exemplo n.º 7
0
def test_pangram_with_only_lower_case():
    assert is_pangram('the quick brown fox jumps over the lazy dog')
Exemplo n.º 8
0
 def test_missing_letters_replaced_by_numbers(self):
     self.assertIs(
         is_pangram("7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog"), False)
Exemplo n.º 9
0
 def test_missing_character_x(self):
     self.assertIs(
         is_pangram('a quick movement of the enemy will '
                    'jeopardize five gunboats'),
         False)
Exemplo n.º 10
0
 def test_pangram_with_only_lower_case(self):
     self.assertIs(
         is_pangram('the quick brown fox jumps over the lazy dog'),
         True)
Exemplo n.º 11
0
 def test_recognizes_a_perfect_lower_case_pangram(self):
     self.assertIs(is_pangram('abcdefghijklmnopqrstuvwxyz'), True)
Exemplo n.º 12
0
 def test_pangram_with_numbers(self):
     self.assertTrue(
         is_pangram("the 1 quick brown fox jumps over the 2 lazy dogs"))
Exemplo n.º 13
0
 def test_pangram_with_underscores(self):
     self.assertTrue(
         is_pangram("the_quick_brown_fox_jumps_over_the_lazy_dog"))
Exemplo n.º 14
0
 def test_another_missing_character(self):
     self.assertFalse(
         is_pangram('the quick brown fish jumps over the lazy dog'))
Exemplo n.º 15
0
 def test_missing_the_letter_x(self):
     self.assertIs(
         is_pangram(
             "a quick movement of the enemy will jeopardize five gunboats"),
         False,
     )
Exemplo n.º 16
0
 def test_with_underscores(self):
     self.assertIs(
         is_pangram("the_quick_brown_fox_jumps_over_the_lazy_dog"), True)
Exemplo n.º 17
0
 def test_another_missing_character(self):
     self.assertIs(is_pangram('five boxing wizards jump quickly at it'),
                   False)
Exemplo n.º 18
0
 def test_case_insensitive(self):
     self.assertIs(
         is_pangram("the quick brown fox jumps over with lazy FX"), False)
Exemplo n.º 19
0
 def test_pangram_with_underscores(self):
     self.assertIs(
         is_pangram('the_quick_brown_fox_jumps_over_the_lazy_dog'),
         True)
Exemplo n.º 20
0
def test_another_missing_character():
    assert not is_pangram('five boxing wizards jump quickly at it')
Exemplo n.º 21
0
 def test_pangram_with_numbers(self):
     self.assertIs(
         is_pangram('the 1 quick brown fox jumps over the 2 lazy dogs'),
         True)
Exemplo n.º 22
0
def test_pangram_with_mixedcase_and_punctuation():
    assert is_pangram('"Five quacking Zephyrs jolt my wax bed."')
Exemplo n.º 23
0
 def test_missing_letters_replaced_by_numbers(self):
     self.assertIs(
         is_pangram('7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog'),
         False)
Exemplo n.º 24
0
import pangram
# pangram = "The quick brown fox jumps the lazy dog."
pungram = input("Please type your pangram: ")

print("Is this a pangram?", pungram)
print("Computer says:", pangram.is_pangram(pungram))
Exemplo n.º 25
0
 def test_upper_and_lower_case_versions_of_the_same_character(self):
     self.assertIs(
         is_pangram('the quick brown fox jumped over the lazy FX'),
         False)
Exemplo n.º 26
0
 def test_basic_negative(self):
     sentence = 'The quick brown fo jumps over the lazy dog.'
     self.assertEqual(False, is_pangram(sentence))
Exemplo n.º 27
0
 def test_sentence_empty(self):
     self.assertIs(is_pangram(''), False)
Exemplo n.º 28
0
 def test_recognizes_a_perfect_lower_case_pangram(self):
     self.assertIs(is_pangram('abcdefghijklmnopqrstuvwxyz'), True)
Exemplo n.º 29
0
 def test_valid_pangram(self):
     self.assertTrue(
         is_pangram('the quick brown fox jumps over the lazy dog'))
Exemplo n.º 30
0
 def test_only_lower_case(self):
     self.assertIs(
         is_pangram("the quick brown fox jumps over the lazy dog"), True)
Exemplo n.º 31
0
 def test_invalid_pangram(self):
     self.assertFalse(
         is_pangram('the quick brown fish jumps over the lazy dog'))
Exemplo n.º 32
0
 def test_missing_the_letter_h(self):
     self.assertIs(is_pangram("five boxing wizards jump quickly at it"),
                   False)
Exemplo n.º 33
0
 def test_missing_x(self):
     self.assertFalse(is_pangram('a quick movement of the enemy will '
                                 'jeopardize five gunboats'))
Exemplo n.º 34
0
 def test_with_numbers(self):
     self.assertIs(
         is_pangram("the 1 quick brown fox jumps over the 2 lazy dogs"),
         True)
Exemplo n.º 35
0
 def test_mixedcase_and_punctuation(self):
     self.assertTrue(is_pangram('"Five quacking Zephyrs jolt my wax bed."'))
Exemplo n.º 36
0
 def test_mixed_case_and_punctuation(self):
     self.assertIs(is_pangram('"Five quacking Zephyrs jolt my wax bed."'),
                   True)
Exemplo n.º 37
0
 def test_unchecked_german_umlaute(self):
     self.assertTrue(is_pangram('Victor jagt zwölf Boxkämpfer quer über den'
                                ' großen Sylter Deich.'))
Exemplo n.º 38
0
 def test_empty_sentence(self):
     self.assertIs(is_pangram(""), False)
Exemplo n.º 39
0
 def test_empty_string(self):
     self.assertFalse(is_pangram(''))
Exemplo n.º 40
0
def test_missing_character_x():
    assert not is_pangram('a quick movement of the enemy will '
                          'jeopardize five gunboats')
Exemplo n.º 41
0
 def test_missing_character_x(self):
     self.assertIs(
         is_pangram('a quick movement of the enemy will '
                    'jeopardize five gunboats'), False)
Exemplo n.º 42
0
def test_pangram_with_underscores():
    assert is_pangram('the_quick_brown_fox_jumps_over_the_lazy_dog')
Exemplo n.º 43
0
 def test_another_missing_character(self):
     self.assertIs(is_pangram('five boxing wizards jump quickly at it'),
                   False)
Exemplo n.º 44
0
def test_missing_letters_replaced_by_numbers():
    assert not is_pangram('7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog')
Exemplo n.º 45
0
 def test_upper_and_lower_case_versions_of_the_same_character(self):
     self.assertIs(
         is_pangram('the quick brown fox jumped over the lazy FX'), False)
Exemplo n.º 46
0
def test_upper_and_lower_case_versions_of_the_same_character():
    assert not is_pangram('the quick brown fox jumped over the lazy FX')
Exemplo n.º 47
0
 def test_basic(self):
     sentence = 'The quick brown fox jumps over the lazy dog.'
     self.assertEqual(True, is_pangram(sentence))
Exemplo n.º 48
0
def test_recognizes_a_perfect_lower_case_pangram():
    assert is_pangram('abcdefghijklmnopqrstuvwxyz')
Exemplo n.º 49
0
 def test_basic2(self):
     sentence = 'Two driven jocks help fax my big quiz'
     self.assertEqual(True, is_pangram(sentence))