Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
dc104cba
Commit
dc104cba
authored
Nov 18, 2017
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround internal compiler errors in MSVC
parent
39411504
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
test/format-test.cc
test/format-test.cc
+12
-12
No files found.
test/format-test.cc
View file @
dc104cba
...
@@ -1877,18 +1877,6 @@ TEST(FormatTest, FormatStringErrors) {
...
@@ -1877,18 +1877,6 @@ TEST(FormatTest, FormatStringErrors) {
EXPECT_ERROR
(
"{:x}"
,
"argument index out of range"
);
EXPECT_ERROR
(
"{:x}"
,
"argument index out of range"
);
EXPECT_ERROR
(
"{:=}"
,
"format specifier requires numeric argument"
,
EXPECT_ERROR
(
"{:=}"
,
"format specifier requires numeric argument"
,
const
char
*
);
const
char
*
);
#endif
EXPECT_ERROR
(
"{foo"
,
"missing '}' in format string"
,
int
);
EXPECT_ERROR
(
"{10000000000}"
,
"number is too big"
);
EXPECT_ERROR
(
"{0x}"
,
"invalid format string"
);
EXPECT_ERROR
(
"{-}"
,
"invalid format string"
);
EXPECT_ERROR
(
"{:{0x}}"
,
"invalid format string"
,
int
);
EXPECT_ERROR
(
"{:{-}}"
,
"invalid format string"
,
int
);
EXPECT_ERROR
(
"{:.{0x}}"
,
"invalid format string"
,
int
);
EXPECT_ERROR
(
"{:.{-}}"
,
"invalid format string"
,
int
);
EXPECT_ERROR
(
"{:.x}"
,
"missing precision specifier"
,
int
);
EXPECT_ERROR
(
"{}"
,
"argument index out of range"
);
EXPECT_ERROR
(
"{1}"
,
"argument index out of range"
,
int
);
EXPECT_ERROR
(
"{:+}"
,
"format specifier requires numeric argument"
,
EXPECT_ERROR
(
"{:+}"
,
"format specifier requires numeric argument"
,
const
char
*
);
const
char
*
);
EXPECT_ERROR
(
"{:-}"
,
"format specifier requires numeric argument"
,
EXPECT_ERROR
(
"{:-}"
,
"format specifier requires numeric argument"
,
...
@@ -1903,4 +1891,16 @@ TEST(FormatTest, FormatStringErrors) {
...
@@ -1903,4 +1891,16 @@ TEST(FormatTest, FormatStringErrors) {
EXPECT_ERROR
(
"{:-}"
,
"format specifier requires signed argument"
,
unsigned
);
EXPECT_ERROR
(
"{:-}"
,
"format specifier requires signed argument"
,
unsigned
);
EXPECT_ERROR
(
"{: }"
,
"format specifier requires signed argument"
,
unsigned
);
EXPECT_ERROR
(
"{: }"
,
"format specifier requires signed argument"
,
unsigned
);
EXPECT_ERROR
(
"{:.2}"
,
"precision not allowed for this argument type"
,
int
);
EXPECT_ERROR
(
"{:.2}"
,
"precision not allowed for this argument type"
,
int
);
#endif
EXPECT_ERROR
(
"{foo"
,
"missing '}' in format string"
,
int
);
EXPECT_ERROR
(
"{10000000000}"
,
"number is too big"
);
EXPECT_ERROR
(
"{0x}"
,
"invalid format string"
);
EXPECT_ERROR
(
"{-}"
,
"invalid format string"
);
EXPECT_ERROR
(
"{:{0x}}"
,
"invalid format string"
,
int
);
EXPECT_ERROR
(
"{:{-}}"
,
"invalid format string"
,
int
);
EXPECT_ERROR
(
"{:.{0x}}"
,
"invalid format string"
,
int
);
EXPECT_ERROR
(
"{:.{-}}"
,
"invalid format string"
,
int
);
EXPECT_ERROR
(
"{:.x}"
,
"missing precision specifier"
,
int
);
EXPECT_ERROR
(
"{}"
,
"argument index out of range"
);
EXPECT_ERROR
(
"{1}"
,
"argument index out of range"
,
int
);
}
}
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