def test_quantile(self):
        self.assertAlmostEqualOnAllArrayTypes(
            quantile, [1, 1, 1, 3, 4, 7, 9, 11, 13, 13], 1.0, 0.2
        )
        self.assertAlmostEqualOnAllArrayTypes(
            quantile, [1, 1, 1, 3, 4, 7, 9, 11, 13, 13], 13, 0.9
        )
        self.assertAlmostEqualOnAllArrayTypes(
            quantile, [1, 1, 1, 3, 4, 7, 9, 11, 13, 13], 13, 1.0
        )
        self.assertAlmostEqualOnAllArrayTypes(quantile, [1], 1, 0.5)
        self.assertIsNanOnAllArrayTypes(quantile, [], 0.5)