Jan_31_2024-Dev

This commit is contained in:
Ned Wright
2024-01-31 17:34:53 +00:00
parent 752a5785f0
commit 6d67818a94
376 changed files with 8101 additions and 7064 deletions

9
core/core_ut/maybe_res_ut.cc Executable file → Normal file
View File

@@ -359,6 +359,15 @@ TEST(Maybe, maybe_void_error_passing)
EXPECT_EQ("error", err2.getErr());
}
TEST(Maybe, maybe_void_error_passing2)
{
Maybe<void> err1 = genError("error");
Maybe<void> err2 = err1.passErr();
EXPECT_FALSE(err2.ok());
EXPECT_EQ("error", err2.getErr());
}
TEST(Maybe, printing)
{
ostringstream os;