Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
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
spdlog
Commits
70274924
Commit
70274924
authored
Dec 01, 2017
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed test comment
parent
f5939f9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/file_log.cpp
tests/file_log.cpp
+3
-3
No files found.
tests/file_log.cpp
View file @
70274924
...
...
@@ -214,7 +214,7 @@ TEST_CASE("rotating_file_sink::calc_filename3", "[rotating_file_sink]]")
TEST_CASE
(
"daily_file_sink::default_daily_file_name_calculator1"
,
"[daily_file_sink]]"
)
{
// daily
.
YYYY-MM-DD_hh-mm.txt
// daily
_
YYYY-MM-DD_hh-mm.txt
auto
filename
=
spdlog
::
sinks
::
default_daily_file_name_calculator
::
calc_filename
(
"daily.txt"
);
std
::
regex
re
(
R"(^daily_(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])_\d\d-[0-5][0-9].txt$)"
);
std
::
smatch
match
;
...
...
@@ -223,7 +223,7 @@ TEST_CASE("daily_file_sink::default_daily_file_name_calculator1", "[daily_file_s
TEST_CASE
(
"daily_file_sink::default_daily_file_name_calculator2"
,
"[daily_file_sink]]"
)
{
// daily
.
YYYY-MM-DD_hh-mm.txt
// daily
_
YYYY-MM-DD_hh-mm.txt
auto
filename
=
spdlog
::
sinks
::
default_daily_file_name_calculator
::
calc_filename
(
"daily"
);
std
::
regex
re
(
R"(^daily_(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])_\d\d-[0-5][0-9]$)"
);
std
::
smatch
match
;
...
...
@@ -232,7 +232,7 @@ TEST_CASE("daily_file_sink::default_daily_file_name_calculator2", "[daily_file_s
TEST_CASE
(
"daily_file_sink::dateonly_daily_file_name_calculator"
,
"[daily_file_sink]]"
)
{
// daily
.
YYYY-MM-DD_hh-mm.txt
// daily
_
YYYY-MM-DD_hh-mm.txt
auto
filename
=
spdlog
::
sinks
::
dateonly_daily_file_name_calculator
::
calc_filename
(
"daily.txt"
);
// date regex based on https://www.regular-expressions.info/dates.html
std
::
regex
re
(
R"(^daily_(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])\.txt$)"
);
...
...
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