diff --git a/stat_test.go b/stat_test.go index d81fef2a..5cd00c08 100644 --- a/stat_test.go +++ b/stat_test.go @@ -1106,7 +1106,11 @@ func TestQuantile(t *testing.T) { c: Empirical, p: 2, }, - + { + name: "p is NaN", + c: Empirical, + p: math.NaN(), + }, { name: "len(x) != len(weights)", c: Empirical,