def test_uniform(self):
        t = TDigest()
        x = random.random(size=10000)
        t.batch_update(x)

        assert abs(t.percentile(50) - 0.5) < 0.02
        assert abs(t.percentile(10) - .1) < 0.01
        assert abs(t.percentile(90) - 0.9) < 0.01
        assert 0.005 < abs(t.percentile(1) - 0.01)
        assert abs(t.percentile(99) - 0.99) < 0.005
        assert abs(t.percentile(0.1) - 0.001) < 0.001
        assert abs(t.percentile(99.9) - 0.999) < 0.001
dataset/ETHPy150Open CamDavidsonPilon/tdigest/tests/test_tdigest.py/TestStatisticalTests.test_uniform/swapped operands of `<`