Skip to content

Commit

Permalink
fuzzer debug
Browse files Browse the repository at this point in the history
  • Loading branch information
svm1 committed Jan 24, 2025
1 parent 9c7bcc0 commit f3e97b3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions velox/functions/prestosql/tests/ProbabilityTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,22 @@ TEST_F(ProbabilityTest, inverseFCDF) {
inverseFCDF(1, -kInf, -0.1), "p must be in the interval [0, 1]");
}


// TODO: remove this test after completion of fuzzer debug
TEST_F(ProbabilityTest, inverseFCDF_FUZZER) {
const auto inverseFCDF = [&](std::optional<double> df1,
std::optional<double> df2,
std::optional<double> p) {
return evaluateOnce<double>("inverse_f_cdf(c0, c1, c2)", df1, df2, p);
};

// EXPECT_EQ(inverseFCDF(2.0, 5.0, 0.0), 0.0);

// inverse_f_cdf(0.36946232430636883, inverse_f_cdf(0.5703326677903533, 0.7623271467164159, 0.13314712885767221), 0.9104626753833145)
auto subExpr1 = inverseFCDF(0.5703326677903533, 0.7623271467164159, 0.13314712885767221);
auto mainExpr1 = inverseFCDF(0.36946232430636883, subExpr1, 0.9104626753833145);
}

TEST_F(ProbabilityTest, chiSquaredCDF) {
const auto chiSquaredCDF = [&](std::optional<double> df,
std::optional<double> value) {
Expand Down

0 comments on commit f3e97b3

Please sign in to comment.