コード例 #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)
コード例 #2
0
 def test_perfect_lower_case(self):
     self.assertIs(is_pangram("abcdefghijklmnopqrstuvwxyz"), True)
コード例 #3
0
 def test_basic2_negative(self):
     sentence = 'Two driven jocks hel fax my big quiz'
     self.assertEqual(False, is_pangram(sentence))
コード例 #4
0
 def test_sentence_empty(self):
     self.assertIs(is_pangram(''), False)
コード例 #5
0
def test_sentence_empty():
    assert not is_pangram('')
コード例 #6
0
def test_pangram_with_numbers():
    assert is_pangram('the 1 quick brown fox jumps over the 2 lazy dogs')
コード例 #7
0
def test_pangram_with_only_lower_case():
    assert is_pangram('the quick brown fox jumps over the lazy dog')
コード例 #8
0
 def test_missing_letters_replaced_by_numbers(self):
     self.assertIs(
         is_pangram("7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog"), False)
コード例 #9
0
ファイル: pangram_test.py プロジェクト: fortrieb/python
 def test_missing_character_x(self):
     self.assertIs(
         is_pangram('a quick movement of the enemy will '
                    'jeopardize five gunboats'),
         False)
コード例 #10
0
ファイル: pangram_test.py プロジェクト: fortrieb/python
 def test_pangram_with_only_lower_case(self):
     self.assertIs(
         is_pangram('the quick brown fox jumps over the lazy dog'),
         True)
コード例 #11
0
ファイル: pangram_test.py プロジェクト: fortrieb/python
 def test_recognizes_a_perfect_lower_case_pangram(self):
     self.assertIs(is_pangram('abcdefghijklmnopqrstuvwxyz'), True)
コード例 #12
0
ファイル: pangram_test.py プロジェクト: a62mds/exercism
 def test_pangram_with_numbers(self):
     self.assertTrue(
         is_pangram("the 1 quick brown fox jumps over the 2 lazy dogs"))
コード例 #13
0
ファイル: pangram_test.py プロジェクト: a62mds/exercism
 def test_pangram_with_underscores(self):
     self.assertTrue(
         is_pangram("the_quick_brown_fox_jumps_over_the_lazy_dog"))
コード例 #14
0
ファイル: pangram_test.py プロジェクト: a62mds/exercism
 def test_another_missing_character(self):
     self.assertFalse(
         is_pangram('the quick brown fish jumps over the lazy dog'))
コード例 #15
0
 def test_missing_the_letter_x(self):
     self.assertIs(
         is_pangram(
             "a quick movement of the enemy will jeopardize five gunboats"),
         False,
     )
コード例 #16
0
 def test_with_underscores(self):
     self.assertIs(
         is_pangram("the_quick_brown_fox_jumps_over_the_lazy_dog"), True)
コード例 #17
0
ファイル: pangram_test.py プロジェクト: fortrieb/python
 def test_another_missing_character(self):
     self.assertIs(is_pangram('five boxing wizards jump quickly at it'),
                   False)
コード例 #18
0
 def test_case_insensitive(self):
     self.assertIs(
         is_pangram("the quick brown fox jumps over with lazy FX"), False)
コード例 #19
0
ファイル: pangram_test.py プロジェクト: fortrieb/python
 def test_pangram_with_underscores(self):
     self.assertIs(
         is_pangram('the_quick_brown_fox_jumps_over_the_lazy_dog'),
         True)
コード例 #20
0
def test_another_missing_character():
    assert not is_pangram('five boxing wizards jump quickly at it')
コード例 #21
0
ファイル: pangram_test.py プロジェクト: fortrieb/python
 def test_pangram_with_numbers(self):
     self.assertIs(
         is_pangram('the 1 quick brown fox jumps over the 2 lazy dogs'),
         True)
コード例 #22
0
def test_pangram_with_mixedcase_and_punctuation():
    assert is_pangram('"Five quacking Zephyrs jolt my wax bed."')
コード例 #23
0
ファイル: pangram_test.py プロジェクト: fortrieb/python
 def test_missing_letters_replaced_by_numbers(self):
     self.assertIs(
         is_pangram('7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog'),
         False)
コード例 #24
0
ファイル: pangram_interface.py プロジェクト: TSBPhD/classes
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))
コード例 #25
0
ファイル: pangram_test.py プロジェクト: fortrieb/python
 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)
コード例 #26
0
 def test_basic_negative(self):
     sentence = 'The quick brown fo jumps over the lazy dog.'
     self.assertEqual(False, is_pangram(sentence))
コード例 #27
0
ファイル: pangram_test.py プロジェクト: fortrieb/python
 def test_sentence_empty(self):
     self.assertIs(is_pangram(''), False)
コード例 #28
0
 def test_recognizes_a_perfect_lower_case_pangram(self):
     self.assertIs(is_pangram('abcdefghijklmnopqrstuvwxyz'), True)
コード例 #29
0
ファイル: pangram_test.py プロジェクト: jealous/exercism
 def test_valid_pangram(self):
     self.assertTrue(
         is_pangram('the quick brown fox jumps over the lazy dog'))
コード例 #30
0
 def test_only_lower_case(self):
     self.assertIs(
         is_pangram("the quick brown fox jumps over the lazy dog"), True)
コード例 #31
0
ファイル: pangram_test.py プロジェクト: jealous/exercism
 def test_invalid_pangram(self):
     self.assertFalse(
         is_pangram('the quick brown fish jumps over the lazy dog'))
コード例 #32
0
 def test_missing_the_letter_h(self):
     self.assertIs(is_pangram("five boxing wizards jump quickly at it"),
                   False)
コード例 #33
0
ファイル: pangram_test.py プロジェクト: jealous/exercism
 def test_missing_x(self):
     self.assertFalse(is_pangram('a quick movement of the enemy will '
                                 'jeopardize five gunboats'))
コード例 #34
0
 def test_with_numbers(self):
     self.assertIs(
         is_pangram("the 1 quick brown fox jumps over the 2 lazy dogs"),
         True)
コード例 #35
0
ファイル: pangram_test.py プロジェクト: jealous/exercism
 def test_mixedcase_and_punctuation(self):
     self.assertTrue(is_pangram('"Five quacking Zephyrs jolt my wax bed."'))
コード例 #36
0
 def test_mixed_case_and_punctuation(self):
     self.assertIs(is_pangram('"Five quacking Zephyrs jolt my wax bed."'),
                   True)
コード例 #37
0
ファイル: pangram_test.py プロジェクト: jealous/exercism
 def test_unchecked_german_umlaute(self):
     self.assertTrue(is_pangram('Victor jagt zwölf Boxkämpfer quer über den'
                                ' großen Sylter Deich.'))
コード例 #38
0
 def test_empty_sentence(self):
     self.assertIs(is_pangram(""), False)
コード例 #39
0
ファイル: pangram_test.py プロジェクト: jealous/exercism
 def test_empty_string(self):
     self.assertFalse(is_pangram(''))
コード例 #40
0
def test_missing_character_x():
    assert not is_pangram('a quick movement of the enemy will '
                          'jeopardize five gunboats')
コード例 #41
0
 def test_missing_character_x(self):
     self.assertIs(
         is_pangram('a quick movement of the enemy will '
                    'jeopardize five gunboats'), False)
コード例 #42
0
def test_pangram_with_underscores():
    assert is_pangram('the_quick_brown_fox_jumps_over_the_lazy_dog')
コード例 #43
0
 def test_another_missing_character(self):
     self.assertIs(is_pangram('five boxing wizards jump quickly at it'),
                   False)
コード例 #44
0
def test_missing_letters_replaced_by_numbers():
    assert not is_pangram('7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog')
コード例 #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)
コード例 #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')
コード例 #47
0
 def test_basic(self):
     sentence = 'The quick brown fox jumps over the lazy dog.'
     self.assertEqual(True, is_pangram(sentence))
コード例 #48
0
def test_recognizes_a_perfect_lower_case_pangram():
    assert is_pangram('abcdefghijklmnopqrstuvwxyz')
コード例 #49
0
 def test_basic2(self):
     sentence = 'Two driven jocks help fax my big quiz'
     self.assertEqual(True, is_pangram(sentence))