aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/tests.h')
-rw-r--r--src/tests/tests.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/tests.h b/src/tests/tests.h
index 159c61400..bcd91bd5c 100644
--- a/src/tests/tests.h
+++ b/src/tests/tests.h
@@ -234,9 +234,9 @@ class Test
test_failure(what, buf.data(), buf.size());
}
- bool confirm(const std::string& what, bool expr)
+ bool confirm(const std::string& what, bool expr, bool expected = true)
{
- return test_eq(what, expr, true);
+ return test_eq(what, expr, expected);
}
template<typename T>