Skip to content

Commit

Permalink
[stat] Slightly raise test comparison accuracy for compatibility with…
Browse files Browse the repository at this point in the history
… IntelLLVM compiler
  • Loading branch information
Wentzell committed Sep 30, 2021
1 parent 694864c commit 7380123
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions test/c++/stat/autocorr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ TEST(Stat, LogBinArray) {
auto [errors_b, counts_b] = b.log_bin_errors();

for (auto [x1, x2, a] : itertools::zip(errors_b1, errors_b2, errors_b)) {
EXPECT_NEAR(x1, a(0, 0), 1.e-15);
EXPECT_NEAR(x2, a(0, 1), 1.e-15);
EXPECT_NEAR(x1, a(1, 1), 1.e-15);
EXPECT_NEAR(x2, a(1, 0), 1.e-15);
EXPECT_NEAR(x1, a(0, 0), 1.e-14);
EXPECT_NEAR(x2, a(0, 1), 1.e-14);
EXPECT_NEAR(x1, a(1, 1), 1.e-14);
EXPECT_NEAR(x2, a(1, 0), 1.e-14);
}

auto [errors_bb, counts_bb] = b.log_bin_errors();
Expand Down
12 changes: 6 additions & 6 deletions test/c++/stat/jackknife.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ TEST(Binned, array) {
//std::cerr << xn << std::endl;
//std::cerr << xd << std::endl;

EXPECT_NEAR(x1, x(0, 0), 1.e-15);
EXPECT_NEAR(x2, x(0, 1), 1.e-15);
EXPECT_NEAR(xn1, xn(0, 0), 1.e-15);
EXPECT_NEAR(xn2, xn(0, 1), 1.e-15);
EXPECT_NEAR(d1, xd(0, 0), 1.e-15);
EXPECT_NEAR(d2, xd(1, 0), 1.e-15);
EXPECT_NEAR(x1, x(0, 0), 1.e-13);
EXPECT_NEAR(x2, x(0, 1), 1.e-13);
EXPECT_NEAR(xn1, xn(0, 0), 1.e-13);
EXPECT_NEAR(xn2, xn(0, 1), 1.e-13);
EXPECT_NEAR(d1, xd(0, 0), 1.e-13);
EXPECT_NEAR(d2, xd(1, 0), 1.e-13);
}

/*
Expand Down

0 comments on commit 7380123

Please sign in to comment.