mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Add small Success test (#1141)
This commit is contained in:
@@ -43,5 +43,11 @@ TEST(ErrorTest, ErrorOrArrowOp) {
|
||||
EXPECT_EQ(err->val, 1);
|
||||
}
|
||||
|
||||
auto IndirectErrorOrSuccessTest() -> ErrorOr<Success> { return Success(); }
|
||||
|
||||
TEST(ErrorTest, IndirectErrorOrSuccess) {
|
||||
EXPECT_TRUE(IndirectErrorOrSuccessTest().ok());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace Carbon::Testing
|
||||
|
||||
Reference in New Issue
Block a user