mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 17:41:10 +00:00
Replace assert with CHECK (#1098)
This commit is contained in:
1 parent
fae7f0d007
commit
eecf4a34b3
6 files changed
+17
-11
No files matched your search
@@ -7,6 +7,7 @@
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "common/check.h"
|
||||
#include "common/ostream.h"
|
||||
#include "toolchain/diagnostics/diagnostic_emitter.h"
|
||||
#include "toolchain/lexer/test_helpers.h"
|
||||
@@ -20,7 +21,7 @@ class StringLiteralTest : public ::testing::Test {
|
||||
|
||||
auto Lex(llvm::StringRef text) -> LexedStringLiteral {
|
||||
llvm::Optional<LexedStringLiteral> result = LexedStringLiteral::Lex(text);
|
||||
assert(result);
|
||||
CHECK(result);
|
||||
EXPECT_EQ(result->Text(), text);
|
||||
return *result;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user