Ejemplo n.º 1
0
def test_binary_split_many():
    desired = [0, 5, 2, 7, 1, 3, 6, 8, 4, 9]
    actual = binary_split(10)

    np.testing.assert_equal(actual, desired)
Ejemplo n.º 2
0
def test_binary_split_1():
    desired = [0]
    actual = binary_split(1)

    np.testing.assert_equal(actual, desired)