From 9b1c2bed9b8d75b5711f9d0024ec69947dd85b04 Mon Sep 17 00:00:00 2001 From: Dima Date: Sun, 28 Apr 2024 22:47:05 +0200 Subject: [PATCH] Fixed the test for real. --- src/test_c5t_dlib.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test_c5t_dlib.cc b/src/test_c5t_dlib.cc index a962cfd..b3cac3f 100644 --- a/src/test_c5t_dlib.cc +++ b/src/test_c5t_dlib.cc @@ -37,8 +37,8 @@ TEST(DLibTest, Test1_Smoke) { "test1", [&](C5T_DLib& dlib) { return dlib.CallReturningOptional("NoSuchFunction"); }); ASSERT_FALSE(Exists(s2)); - Optional const s3 = - C5T_DLIB_CALL("no_such_lib", [&](C5T_DLib& dlib) { return dlib.CallOrDefault("ShouldReturnOK"); }); + Optional const s3 = C5T_DLIB_CALL( + "no_such_lib", [&](C5T_DLib& dlib) { return dlib.CallReturningOptional("ShouldReturnOK"); }); ASSERT_FALSE(Exists(s3)); std::string const s4 = C5T_DLIB_CALL(