Пример #1
0
 def test_intersection_min_12(self):
     u = {"a": 1.0, "b": 1.0, "c": 1.0}
     a = {"a": 0.5, "b": 0.2}
     b = {"b": 0.1, "c": 0.7}
     self.assertEqual(intersection_min.intersection_min(u, a, b), {
         "a": 0.0,
         "b": 0.1,
         "c": 0.0
     })
Пример #2
0
 def test_intersection_min_10(self):
     u = {"a": 'asghar', "b": 1.0, "c": 1.0}
     a = {"a": 1.0}
     b = {"b": 1.0, "c": 1.0}
     self.assertRaises(TypeError,
                       lambda: intersection_min.intersection_min(u, a, b))