Skip to content

Commit 4ce9034

Browse files
committed
minor updates unit tests
1 parent 05dba13 commit 4ce9034

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/source/implementation/autodiff.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ TEST_CASE("reverse mode" * dt::test_suite("[autodiff]")) {
264264

265265
auto f1 = std::isfinite(jjet.sum());
266266
auto f2 = std::isfinite(jrev.sum());
267-
auto ok = (!f1) || (f1 && f2 && jrev.isApprox(jjet, epsilon));
267+
auto ok = (!f1 && !f2) || (f1 && f2 && jrev.isApprox(jjet, epsilon));
268268

269269
if(f1 && f2) {
270270
for (auto const& n : tree.Nodes()) {

test/source/performance/evaluation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace Operon::Test {
6565
// used by some Langdon & Banzhaf papers as benchmark for measuring GPops/s
6666
TEST_CASE("Evaluation performance")
6767
{
68-
constexpr size_t n = 10000;
68+
constexpr size_t n = 1000;
6969
constexpr size_t maxLength = 64;
7070
constexpr size_t maxDepth = 1000;
7171
constexpr size_t nrow = 12800;

0 commit comments

Comments
 (0)