Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
e7ed50fd
Commit
e7ed50fd
authored
Nov 11, 2020
by
dmauro
Committed by
Mark Barolak
Nov 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Disable the wide character printing tests that were discovered to fail under MSVC. Created a bug to debug this. PiperOrigin-RevId: 341886318
parent
d385a772
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
googletest-printers-test.cc
googletest/test/googletest-printers-test.cc
+20
-0
No files found.
googletest/test/googletest-printers-test.cc
View file @
e7ed50fd
...
@@ -756,7 +756,12 @@ TEST(PrintArrayTest, Char8Array) {
...
@@ -756,7 +756,12 @@ TEST(PrintArrayTest, Char8Array) {
#endif
#endif
// char16_t array.
// char16_t array.
#ifdef _MSC_VER
// TODO(b/173029407): Figure out why this doesn't work under MSVC.
TEST
(
PrintArrayTest
,
DISABLED_Char16Array
)
{
#else
TEST
(
PrintArrayTest
,
Char16Array
)
{
TEST
(
PrintArrayTest
,
Char16Array
)
{
#endif
const
char16_t
a
[]
=
u"Hello, 世界"
;
const
char16_t
a
[]
=
u"Hello, 世界"
;
EXPECT_EQ
(
EXPECT_EQ
(
"{ U+0048, U+0065, U+006C, U+006C, U+006F, U+002C, U+0020, U+4E16, "
"{ U+0048, U+0065, U+006C, U+006C, U+006F, U+002C, U+0020, U+4E16, "
...
@@ -765,7 +770,12 @@ TEST(PrintArrayTest, Char16Array) {
...
@@ -765,7 +770,12 @@ TEST(PrintArrayTest, Char16Array) {
}
}
// char32_t array.
// char32_t array.
#ifdef _MSC_VER
// TODO(b/173029407): Figure out why this doesn't work under MSVC.
TEST
(
PrintArrayTest
,
DISABLED_Char32Array
)
{
#else
TEST
(
PrintArrayTest
,
Char32Array
)
{
TEST
(
PrintArrayTest
,
Char32Array
)
{
#endif
const
char32_t
a
[]
=
U"Hello, 世界"
;
const
char32_t
a
[]
=
U"Hello, 世界"
;
EXPECT_EQ
(
EXPECT_EQ
(
"{ U+0048, U+0065, U+006C, U+006C, U+006F, U+002C, U+0020, U+4E16, "
"{ U+0048, U+0065, U+006C, U+006C, U+006F, U+002C, U+0020, U+4E16, "
...
@@ -843,7 +853,12 @@ TEST(PrintStringTest, U8String) {
...
@@ -843,7 +853,12 @@ TEST(PrintStringTest, U8String) {
}
}
#endif
#endif
#ifdef _MSC_VER
// TODO(b/173029407): Figure out why this doesn't work under MSVC.
TEST
(
PrintStringTest
,
DISABLED_U16String
)
{
#else
TEST
(
PrintStringTest
,
U16String
)
{
TEST
(
PrintStringTest
,
U16String
)
{
#endif
std
::
u16string
str
=
u"Hello, 世界"
;
std
::
u16string
str
=
u"Hello, 世界"
;
EXPECT_EQ
(
str
,
str
);
// Verify EXPECT_EQ compiles with this type.
EXPECT_EQ
(
str
,
str
);
// Verify EXPECT_EQ compiles with this type.
EXPECT_EQ
(
EXPECT_EQ
(
...
@@ -852,7 +867,12 @@ TEST(PrintStringTest, U16String) {
...
@@ -852,7 +867,12 @@ TEST(PrintStringTest, U16String) {
Print
(
str
));
Print
(
str
));
}
}
#ifdef _MSC_VER
// TODO(b/173029407): Figure out why this doesn't work under MSVC.
TEST
(
PrintStringTest
,
DISABLED_U32String
)
{
#else
TEST
(
PrintStringTest
,
U32String
)
{
TEST
(
PrintStringTest
,
U32String
)
{
#endif
std
::
u32string
str
=
U"Hello, 世界"
;
std
::
u32string
str
=
U"Hello, 世界"
;
EXPECT_EQ
(
str
,
str
);
// Verify EXPECT_EQ compiles with this type.
EXPECT_EQ
(
str
,
str
);
// Verify EXPECT_EQ compiles with this type.
EXPECT_EQ
(
EXPECT_EQ
(
...
...
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