Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
794da715
Commit
794da715
authored
Mar 18, 2022
by
Brad Messer
Browse files
Remove sanity as it is offensive to neurodiverse individuals.
parent
ae5e06dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
googlemock/test/gmock-matchers_test.cc
googlemock/test/gmock-matchers_test.cc
+1
-1
googletest/test/googletest-output-test_.cc
googletest/test/googletest-output-test_.cc
+1
-1
googletest/test/googletest-printers-test.cc
googletest/test/googletest-printers-test.cc
+1
-1
googletest/test/gtest_unittest.cc
googletest/test/gtest_unittest.cc
+1
-1
No files found.
googlemock/test/gmock-matchers_test.cc
View file @
794da715
...
@@ -7666,7 +7666,7 @@ TEST(ElementsAreArrayTest, CanBeCreatedWithIteratorRange) {
...
@@ -7666,7 +7666,7 @@ TEST(ElementsAreArrayTest, CanBeCreatedWithIteratorRange) {
}
}
// Since ElementsAre() and ElementsAreArray() share much of the
// Since ElementsAre() and ElementsAreArray() share much of the
// implementation, we only do a
sanity
test for native arrays here.
// implementation, we only do a test for native arrays here.
TEST
(
ElementsAreArrayTest
,
WorksWithNativeArray
)
{
TEST
(
ElementsAreArrayTest
,
WorksWithNativeArray
)
{
::
std
::
string
a
[]
=
{
"hi"
,
"ho"
};
::
std
::
string
a
[]
=
{
"hi"
,
"ho"
};
::
std
::
string
b
[]
=
{
"hi"
,
"ho"
};
::
std
::
string
b
[]
=
{
"hi"
,
"ho"
};
...
...
googletest/test/googletest-output-test_.cc
View file @
794da715
...
@@ -1081,7 +1081,7 @@ int main(int argc, char **argv) {
...
@@ -1081,7 +1081,7 @@ int main(int argc, char **argv) {
// this program with the golden file.
// this program with the golden file.
// It's hard to test InitGoogleTest() directly, as it has many
// It's hard to test InitGoogleTest() directly, as it has many
// global side effects. The following line serves as a
sanity
test
// global side effects. The following line serves as a test
// for it.
// for it.
testing
::
InitGoogleTest
(
&
argc
,
argv
);
testing
::
InitGoogleTest
(
&
argc
,
argv
);
bool
internal_skip_environment_and_ad_hoc_tests
=
bool
internal_skip_environment_and_ad_hoc_tests
=
...
...
googletest/test/googletest-printers-test.cc
View file @
794da715
...
@@ -1629,7 +1629,7 @@ TEST(PrintToStringTest, WorksForCharArrayWithEmbeddedNul) {
...
@@ -1629,7 +1629,7 @@ TEST(PrintToStringTest, WorksForCharArrayWithEmbeddedNul) {
}
}
TEST
(
PrintToStringTest
,
ContainsNonLatin
)
{
TEST
(
PrintToStringTest
,
ContainsNonLatin
)
{
//
Sanity t
est with valid UTF-8. Prints both in hex and as text.
//
T
est with valid UTF-8. Prints both in hex and as text.
std
::
string
non_ascii_str
=
::
std
::
string
(
"오전 4:30"
);
std
::
string
non_ascii_str
=
::
std
::
string
(
"오전 4:30"
);
EXPECT_PRINT_TO_STRING_
(
non_ascii_str
,
EXPECT_PRINT_TO_STRING_
(
non_ascii_str
,
"
\"\\
xEC
\\
x98
\\
xA4
\\
xEC
\\
xA0
\\
x84 4:30
\"\n
"
"
\"\\
xEC
\\
x98
\\
xA4
\\
xEC
\\
xA0
\\
x84 4:30
\"\n
"
...
...
googletest/test/gtest_unittest.cc
View file @
794da715
...
@@ -7171,7 +7171,7 @@ TEST(EventListenerTest, RemovingDefaultXmlGeneratorWorks) {
...
@@ -7171,7 +7171,7 @@ TEST(EventListenerTest, RemovingDefaultXmlGeneratorWorks) {
delete
listener
;
delete
listener
;
}
}
//
Sanity t
ests to ensure that the alternative, verbose spellings of
//
T
ests to ensure that the alternative, verbose spellings of
// some of the macros work. We don't test them thoroughly as that
// some of the macros work. We don't test them thoroughly as that
// would be quite involved. Since their implementations are
// would be quite involved. Since their implementations are
// straightforward, and they are rarely used, we'll just rely on the
// straightforward, and they are rarely used, we'll just rely on the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment