Skip to content

Commit

Permalink
check output
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowen Fu committed Jul 10, 2022
1 parent cd643b3 commit d17cd65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/hspp/stm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ TEST(MVar, logger)
logMessage | l | "bye",
logStop | l
);

testing::internal::CaptureStdout();
io_.run();
std::string output = testing::internal::GetCapturedStdout();
EXPECT_EQ(output, "hello\nbye\nlogger: stop\n");
}


Expand Down

0 comments on commit d17cd65

Please sign in to comment.