示例#1
0
 def test_no_product(self):
     self.assertEqual('0.00', solution('Jareau Wade,Rob Eroh;'))
示例#2
0
 def test_provided_3(self):
     self.assertEqual('71.25', solution('Jareau Wade,Rob Eroh,Mahmoud Abdelkader,Wenyi Cai,Justin Van Winkle,Gabriel Sinkin,Aaron Adelson;Batman No. 1,Football - Official Size,Bass Amplifying Headphones,Elephant food - 1024 lbs,Three Wolf One Moon T-shirt,Dom Perignon 2000 Vintage'))
示例#3
0
 def test_no_customer(self):
     self.assertEqual('0.00', solution(';Batman No. 1,Football - Official Size'))
示例#4
0
 def test_provided_1(self):
     self.assertEqual('21.00', solution('Jack Abraham,John Evans,Ted Dziuba;iPad 2 - 4-pack,Girl Scouts Thin Mints,Nerf Crossbow'))
示例#5
0
 def test_provided_2(self):
     self.assertEqual('83.50', solution('Jeffery Lebowski,Walter Sobchak,Theodore Donald Kerabatsos,Peter Gibbons,Michael Bolton,Samir Nagheenanajar;Half & Half,Colt M1911A1,16lb bowling ball,Red Swingline Stapler,Printer paper,Vibe Magazine Subscriptions - 40 pack'))
示例#6
0
 def test_no_product(self):
     self.assertEqual('0.00', solution('Jareau Wade,Rob Eroh;'))
示例#7
0
 def test_no_customer(self):
     self.assertEqual('0.00',
                      solution(';Batman No. 1,Football - Official Size'))
示例#8
0
 def test_provided_3(self):
     self.assertEqual(
         '71.25',
         solution(
             'Jareau Wade,Rob Eroh,Mahmoud Abdelkader,Wenyi Cai,Justin Van Winkle,Gabriel Sinkin,Aaron Adelson;Batman No. 1,Football - Official Size,Bass Amplifying Headphones,Elephant food - 1024 lbs,Three Wolf One Moon T-shirt,Dom Perignon 2000 Vintage'
         ))
示例#9
0
 def test_provided_2(self):
     self.assertEqual(
         '83.50',
         solution(
             'Jeffery Lebowski,Walter Sobchak,Theodore Donald Kerabatsos,Peter Gibbons,Michael Bolton,Samir Nagheenanajar;Half & Half,Colt M1911A1,16lb bowling ball,Red Swingline Stapler,Printer paper,Vibe Magazine Subscriptions - 40 pack'
         ))
示例#10
0
 def test_provided_1(self):
     self.assertEqual(
         '21.00',
         solution(
             'Jack Abraham,John Evans,Ted Dziuba;iPad 2 - 4-pack,Girl Scouts Thin Mints,Nerf Crossbow'
         ))