aboutsummaryrefslogtreecommitdiff
path: root/re2/testing/mimics_pcre_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 're2/testing/mimics_pcre_test.cc')
-rw-r--r--re2/testing/mimics_pcre_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/re2/testing/mimics_pcre_test.cc b/re2/testing/mimics_pcre_test.cc
index f965092..2dbbfa1 100644
--- a/re2/testing/mimics_pcre_test.cc
+++ b/re2/testing/mimics_pcre_test.cc
@@ -3,6 +3,7 @@
// license that can be found in the LICENSE file.
#include "util/test.h"
+#include "util/logging.h"
#include "re2/prog.h"
#include "re2/regexp.h"
@@ -64,8 +65,8 @@ TEST(MimicsPCRE, SimpleTests) {
if (j == 0)
flags = flags | Regexp::Latin1;
Regexp* re = Regexp::Parse(t.regexp, flags, NULL);
- CHECK(re) << " " << t.regexp;
- CHECK_EQ(t.should_match, re->MimicsPCRE())
+ ASSERT_TRUE(re != NULL) << " " << t.regexp;
+ ASSERT_EQ(t.should_match, re->MimicsPCRE())
<< " " << t.regexp << " "
<< (j==0 ? "latin1" : "utf");
re->Decref();