예제 #1
0
 def test__func(self):
     for case in test_data:
         A = case["input"]
         with self.subTest(f"A = {A}"):
             self.assertEqual(
                 case["solution"],
                 func(A))
예제 #2
0
 def test__func(self):
     for case in test_data:
         A, B = case["input"]["max_loss"], case["input"]["contest_array"]
         with self.subTest(f"\nA = {A}\n\tB = {B}"):
             self.assertEqual(case["solution"], func(A, B))
예제 #3
0
 def test__func(self):
     for case in test_data:
         ratio, arr = case["input"]
         with self.subTest(f"\nratio = {ratio}\narr = {arr}"):
             self.assertEqual(case["solution"], func(ratio, arr))
예제 #4
0
 def test__func(self):
     for case in test_data:
         initial = case["input"]
         with self.subTest(f"\nA = {initial}\n"):
             self.assertEqual(case["solution"], func(initial))