Пример #1
0
 def test_different_size(self):
     assert internal.vector_equal([1, 2, 3], [1, 2]) is False
Пример #2
0
 def test_not_equal(self):
     assert internal.vector_equal([1, 2, 3], [1, 2, 0]) is False
Пример #3
0
 def test_equal(self):
     assert internal.vector_equal([-1, 0, 1], [-1, 0, 1]) is True
Пример #4
0
 def test_different_size(self):
     self.assertEqual(internal.vector_equal([1, 2, 3], [1, 2]), False)
Пример #5
0
 def test_empty(self):
     assert internal.vector_equal([], []) is True
Пример #6
0
 def test_not_equal(self):
     self.assertEqual(internal.vector_equal([1, 2, 3], [1, 2, 0]), False)
Пример #7
0
 def test_equal(self):
     self.assertEqual(internal.vector_equal([-1, 0, 1], [-1, 0, 1]), True)
Пример #8
0
 def test_empty(self):
     self.assertEqual(internal.vector_equal([], []), True)
Пример #9
0
 def test_different_size(self):
     self.assertEqual(internal.vector_equal([1, 2, 3], [1, 2]), False)
Пример #10
0
 def test_equal(self):
     self.assertEqual(internal.vector_equal([-1, 0, 1], [-1, 0, 1]), True)
Пример #11
0
 def test_not_equal(self):
     self.assertEqual(internal.vector_equal([1, 2, 3], [1, 2, 0]), False)
Пример #12
0
 def test_empty(self):
     self.assertEqual(internal.vector_equal([], []), True)