Beispiel #1
0
def test_subcomposition():
    """
    Grab a test_subcomposition.

    """
    x = np.array([1, 2, 3, 4]) / 10
    y = np.array([1, 2, 3]) / 6
    assert np.allclose(subcomposition(x, [0, 1, 2]), y)
Beispiel #2
0
def test_subcomposition():
    """
    Grab a test_subcomposition.

    """
    x = np.array([1, 2, 3, 4]) / 10
    y = np.array([1, 2, 3]) / 6
    np.testing.assert_allclose(subcomposition(x, [0, 1, 2]), y)