コード例 #1
1
ファイル: HW1testspv.py プロジェクト: pbv5001/PS398-HW1
 def test_shoutone(self):
     self.assertEqual(HW1.shout("Hello"), "HELLO!")  # One word
コード例 #2
0
ファイル: HW1testspv.py プロジェクト: pbv5001/PS398-HW1
 def test_shouttwo(self):
     self.assertEqual(HW1.shout("Hello again"), "HELLO AGAIN!")  # Sentence
コード例 #3
0
ファイル: HW1_test.py プロジェクト: wonstein/Homeworks
	def test_shout1(self):
		self.assertEqual(HW1.shout("Hey there"), "HEY THERE!")
コード例 #4
0
ファイル: HW1_test.py プロジェクト: wonstein/Homeworks
	def test_shout4(self):
		self.assertEqual(HW1.shout("Hey. You!"), "HEY! YOU!")
コード例 #5
0
ファイル: HW1_test.py プロジェクト: wonstein/Homeworks
	def test_shout3(self):
		self.assertEqual(HW1.shout("Blah!"), "BLAH!")
コード例 #6
0
ファイル: tests_HW1.py プロジェクト: lucysorensen/PS632-HW1
	def test_shout3(self):
		self.assertEqual(HW1.shout("The Rain in Spain"), "THE RAIN IN SPAIN!")
コード例 #7
0
ファイル: HW1test.py プロジェクト: kaushikreddy/PS398-HW1
 def test_shout_question(self):
     self.assertEqual(HW1.shout("Hello world?"), "HELLO WORLD!")
コード例 #8
0
ファイル: HW1testspv.py プロジェクト: pbv5001/PS398-HW1
 def stest_shoutfive(self):
     self.assertEqual(
         HW1.shout("Multiple periods..."), "MULTIPLE PERIODS!!!"
     )  # turn punctuation into exclaimation =
コード例 #9
0
ファイル: HW1test.py プロジェクト: cassyld/PS398-HW1
 def test_one(self):
     self.assertEqual(HW1.shout("hey you"), "HEY YOU!")
コード例 #10
0
ファイル: HW1Test.py プロジェクト: mace84/PS398-HW1
 def test_ShoutNostr(self):
     self.assertEqual(HW1.shout(1), "")
コード例 #11
0
ファイル: HW1Test.py プロジェクト: mace84/PS398-HW1
 def test_ShoutPunct(self):
     self.assertEqual(HW1.shout("Something wrong? Yes. No! Maybe"), "SOMETHING WRONG! YES! NO! MAYBE!")
コード例 #12
0
ファイル: HW1Test.py プロジェクト: mace84/PS398-HW1
 def test_ShoutCapital(self):
     self.assertEqual(HW1.shout("Something wrong"), "SOMETHING WRONG!")
コード例 #13
0
ファイル: tests_HW1.py プロジェクト: lucysorensen/PS632-HW1
	def test_shout5(self):
		self.assertEqual(HW1.shout("99 bottles of beer!"), "99 BOTTLES OF BEER!!")
コード例 #14
0
ファイル: tests_HW1.py プロジェクト: lucysorensen/PS632-HW1
	def test_shout4(self):
		self.assertEqual(HW1.shout("the rain, in spain"), "THE RAIN, IN SPAIN!")
コード例 #15
0
ファイル: HW1testspv.py プロジェクト: pbv5001/PS398-HW1
 def test_shoutthree(self):
     self.assertEqual(HW1.shout("Exclaimed Hello!!!"), "EXCLAIMED HELLO!!!!")  # Punctuation
コード例 #16
0
ファイル: HW1testspv.py プロジェクト: pbv5001/PS398-HW1
 def test_shoutfour(self):
     self.assertEqual(HW1.shout("CAPS?"), "CAPS!!")  # Already in caps, add a different punctuation
コード例 #17
0
ファイル: HW1test.py プロジェクト: AmyRFinnegan/PS632-HW1
 def test_shout_word(self):
     self.assertEqual(HW1.shout("word"), "WORD!")
コード例 #18
0
ファイル: HW1test.py プロジェクト: AmyRFinnegan/PS632-HW1
 def test_shout_word2(self):
     self.assertNotEqual(HW1.shout("word"), "word")
コード例 #19
0
ファイル: HW1_test.py プロジェクト: wonstein/Homeworks
	def test_shout2(self):
		self.assertEqual(HW1.shout("BLAH"), "BLAH!")
コード例 #20
0
ファイル: HW1test.py プロジェクト: kaushikreddy/PS398-HW1
 def test_shout_with_nums(self):
     self.assertEqual(HW1.shout("I like the number 7."), "I LIKE THE NUMBER 7!")
コード例 #21
0
ファイル: tests_HW1.py プロジェクト: lucysorensen/PS632-HW1
	def test_shout1(self):
		self.assertEqual(HW1.shout("hello"), "HELLO!")