def test_merge_2(self): kv1 = np.array([0, 0.5, 2]) kv2 = np.array([0, 1.5, 2]) result = sv_knotvector.merge(kv1, kv2) expected = np.array([0, 0.5, 1.5, 2]) self.assert_numpy_arrays_equal(result, expected, precision=8)
def test_merge_1(self): kv1 = np.array([0, 1, 2]) kv2 = np.array([0, 1, 2]) result = sv_knotvector.merge(kv1, kv2) expected = np.array([0, 1, 2]) self.assert_numpy_arrays_equal(result, expected)