@@ -56,7 +56,7 @@ TEST(ENFORCE_EQ, NO_EXTRA_MSG_FAIL) {
56
56
caught_exception = true ;
57
57
HasPrefix (
58
58
StringPiece (error.what ()),
59
- " Data check failed. Expected a == 1 + 3, but received a:2 != 1 + 3:4." );
59
+ " Enforce failed. Expected a == 1 + 3, but received a:2 != 1 + 3:4." );
60
60
}
61
61
EXPECT_TRUE (caught_exception);
62
62
}
@@ -69,7 +69,7 @@ TEST(ENFORCE_EQ, EXTRA_MSG_FAIL) {
69
69
} catch (paddle::platform::EnforceNotMet error) {
70
70
caught_exception = true ;
71
71
HasPrefix (StringPiece (error.what ()),
72
- " Data check failed. Expected a == 1 + 3, but received a:2 != 1 + "
72
+ " Enforce failed. Expected a == 1 + 3, but received a:2 != 1 + "
73
73
" 3:4.\n their size not match" );
74
74
}
75
75
EXPECT_TRUE (caught_exception);
@@ -89,7 +89,7 @@ TEST(ENFORCE_NE, FAIL) {
89
89
caught_exception = true ;
90
90
EXPECT_TRUE (HasPrefix (
91
91
StringPiece (error.what ()),
92
- " Data check failed. Expected 1.0 != 1UL, but received 1.0:1 == 1UL:1." ))
92
+ " Enforce failed. Expected 1.0 != 1UL, but received 1.0:1 == 1UL:1." ))
93
93
<< error.what () << " does not have expected prefix" ;
94
94
}
95
95
EXPECT_TRUE (caught_exception);
@@ -104,7 +104,7 @@ TEST(ENFORCE_GT, FAIL) {
104
104
caught_exception = true ;
105
105
EXPECT_TRUE (HasPrefix (
106
106
StringPiece (error.what ()),
107
- " Data check failed. Expected 1 > 2UL, but received 1:1 <= 2UL:2." ));
107
+ " Enforce failed. Expected 1 > 2UL, but received 1:1 <= 2UL:2." ));
108
108
}
109
109
EXPECT_TRUE (caught_exception);
110
110
}
@@ -123,7 +123,7 @@ TEST(ENFORCE_GE, FAIL) {
123
123
caught_exception = true ;
124
124
EXPECT_TRUE (HasPrefix (
125
125
StringPiece (error.what ()),
126
- " Data check failed. Expected 1 >= 2UL, but received 1:1 < 2UL:2." ));
126
+ " Enforce failed. Expected 1 >= 2UL, but received 1:1 < 2UL:2." ));
127
127
}
128
128
EXPECT_TRUE (caught_exception);
129
129
}
@@ -143,7 +143,7 @@ TEST(ENFORCE_LE, FAIL) {
143
143
caught_exception = true ;
144
144
EXPECT_TRUE (HasPrefix (
145
145
StringPiece (error.what ()),
146
- " Data check failed. Expected 1 > 2UL, but received 1:1 <= 2UL:2." ));
146
+ " Enforce failed. Expected 1 > 2UL, but received 1:1 <= 2UL:2." ));
147
147
}
148
148
EXPECT_TRUE (caught_exception);
149
149
}
@@ -160,7 +160,7 @@ TEST(ENFORCE_LT, FAIL) {
160
160
} catch (paddle::platform::EnforceNotMet error) {
161
161
caught_exception = true ;
162
162
EXPECT_TRUE (HasPrefix (StringPiece (error.what ()),
163
- " Data check failed. Expected 1UL < 0.12, but "
163
+ " Enforce failed. Expected 1UL < 0.12, but "
164
164
" received 1UL:1 >= 0.12:0.12." ));
165
165
}
166
166
EXPECT_TRUE (caught_exception);
0 commit comments