Skip to content

Commit 8924509

Browse files
c8efcopybara-github
authored andcommitted
PR #1786: Fix typo in test case.
Imported from GitHub PR abseil/abseil-cpp#1786 Merge d81cf2128c9ad4ee03c3162c1326403e977d0af1 into dee1b6c Merging this change closes #1786 COPYBARA_INTEGRATE_REVIEW=abseil/abseil-cpp#1786 from c8ef:master d81cf2128c9ad4ee03c3162c1326403e977d0af1 PiperOrigin-RevId: 694627073 Change-Id: I7ba1dcc5aacdc1c8209628cff0a4e29a62cde7e6
1 parent 6312b70 commit 8924509

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

absl/base/optimization_test.cc

+8-8
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ TEST(PredictTest, Optional) {
8888
EXPECT_FALSE(ABSL_PREDICT_FALSE(no_value));
8989
}
9090

91-
class ImplictlyConvertibleToBool {
91+
class ImplicitlyConvertibleToBool {
9292
public:
93-
explicit ImplictlyConvertibleToBool(bool value) : value_(value) {}
93+
explicit ImplicitlyConvertibleToBool(bool value) : value_(value) {}
9494
operator bool() const { // NOLINT(google-explicit-constructor)
9595
return value_;
9696
}
@@ -100,26 +100,26 @@ class ImplictlyConvertibleToBool {
100100
};
101101

102102
TEST(PredictTest, ImplicitBoolConversion) {
103-
const ImplictlyConvertibleToBool is_true(true);
104-
const ImplictlyConvertibleToBool is_false(false);
103+
const ImplicitlyConvertibleToBool is_true(true);
104+
const ImplicitlyConvertibleToBool is_false(false);
105105
if (!ABSL_PREDICT_TRUE(is_true)) ADD_FAILURE();
106106
if (ABSL_PREDICT_TRUE(is_false)) ADD_FAILURE();
107107
if (!ABSL_PREDICT_FALSE(is_true)) ADD_FAILURE();
108108
if (ABSL_PREDICT_FALSE(is_false)) ADD_FAILURE();
109109
}
110110

111-
class ExplictlyConvertibleToBool {
111+
class ExplicitlyConvertibleToBool {
112112
public:
113-
explicit ExplictlyConvertibleToBool(bool value) : value_(value) {}
113+
explicit ExplicitlyConvertibleToBool(bool value) : value_(value) {}
114114
explicit operator bool() const { return value_; }
115115

116116
private:
117117
bool value_;
118118
};
119119

120120
TEST(PredictTest, ExplicitBoolConversion) {
121-
const ExplictlyConvertibleToBool is_true(true);
122-
const ExplictlyConvertibleToBool is_false(false);
121+
const ExplicitlyConvertibleToBool is_true(true);
122+
const ExplicitlyConvertibleToBool is_false(false);
123123
if (!ABSL_PREDICT_TRUE(is_true)) ADD_FAILURE();
124124
if (ABSL_PREDICT_TRUE(is_false)) ADD_FAILURE();
125125
if (!ABSL_PREDICT_FALSE(is_true)) ADD_FAILURE();

0 commit comments

Comments
 (0)