def test_delta_t_hist():
    """Test histogram of all time lags."""
    times, values, errors = irregular_random()
    delta_ts = [pair[0] - pair[1] for pair in itertools.combinations(times, 2)]
    nbins = 50
    bins = np.linspace(0, max(times) - min(times), nbins+1)
    npt.assert_allclose(oft.delta_t_hist(times, nbins), np.histogram(delta_ts,
        bins=bins)[0])
dataset/ETHPy150Open cesium-ml/cesium/cesium/tests/test_obs_features.py/test_delta_t_hist/swapped operands of `-`