def test_generate_trajectory():
    # Two groups of three factors
    G = np.array([[1, 0], [0, 1], [0, 1]])
    # Four levels, grid_jump = 2
    num_levels, grid_jump = 4, 2
    output = generate_trajectory(G, num_levels, grid_jump)
    if np.any((output > 1) | (0 < output)):
        raise AssertionError("Bound not working")
    assert_equal(output.shape[0], 3)
    assert_equal(output.shape[1], 3)
dataset/ETHPy150Open SALib/SALib/SALib/tests/test_morris_util.py/test_generate_trajectory/swapped operands of `<`