Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 4
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))
Exemplo n.º 5
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))
Exemplo n.º 6
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))