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
134904c8
Commit
134904c8
authored
Apr 26, 2019
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-enabled constexpr tests
parent
bd516e34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
test/format-test.cc
test/format-test.cc
+3
-1
No files found.
test/format-test.cc
View file @
134904c8
...
...
@@ -2419,7 +2419,7 @@ TEST(FormatTest, FormatStringErrors) {
EXPECT_ERROR_NOARGS
(
"foo"
,
FMT_NULL
);
EXPECT_ERROR_NOARGS
(
"}"
,
"unmatched '}' in format string"
);
EXPECT_ERROR
(
"{0:s"
,
"unknown format specifier"
,
Date
);
# if
ndef _MSC_VER
# if
FMT_MSC_VER >= 1916
// This causes an internal compiler error in MSVC2017.
EXPECT_ERROR
(
"{0:=5"
,
"unknown format specifier"
,
int
);
EXPECT_ERROR
(
"{:{<}"
,
"invalid fill character '{'"
,
int
);
...
...
@@ -2450,6 +2450,8 @@ TEST(FormatTest, FormatStringErrors) {
EXPECT_ERROR
(
"{:d}"
,
"invalid type specifier"
,
const
char
*
);
EXPECT_ERROR
(
"{:d}"
,
"invalid type specifier"
,
std
::
string
);
EXPECT_ERROR
(
"{:s}"
,
"invalid type specifier"
,
void
*
);
# else
fmt
::
print
(
"warning: constexpr is broken in this versio of MSVC
\n
"
);
# endif
EXPECT_ERROR
(
"{foo"
,
"compile-time checks don't support named arguments"
,
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