Exemple #1
0
 def test_equals_places_2(self):
     list1 = [1.101, 2.202, 3.303]
     list2 = [1.102, 2.199, 3.301]
     self.assertTrue(pml_matchers.lists_match(list1, list2, places=2))
Exemple #2
0
 def test_equals_nan(self):
     list1 = [1.1, np.NaN, 3.3]
     list2 = [1.1, np.NaN, 3.3]
     self.assertTrue(pml_matchers.lists_match(list1, list2))
Exemple #3
0
 def test_equals_places_none(self):
     list1 = [1.1, 2.2, 3.3]
     list2 = [1.1, 2.2, 3.3]
     self.assertTrue(pml_matchers.lists_match(list1, list2))
 def test_equals_places_2(self):
     list1 = [1.101, 2.202, 3.303]
     list2 = [1.102, 2.199, 3.301]
     self.assertTrue(pml_matchers.lists_match(list1, list2, places=2))
 def test_equals_nan(self):
     list1 = [1.1, np.NaN, 3.3]
     list2 = [1.1, np.NaN, 3.3]
     self.assertTrue(pml_matchers.lists_match(list1, list2))
 def test_equals_places_none(self):
     list1 = [1.1, 2.2, 3.3]
     list2 = [1.1, 2.2, 3.3]
     self.assertTrue(pml_matchers.lists_match(list1, list2))