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
b2735eb3
Commit
b2735eb3
authored
Nov 16, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed fmt_helper tests
parent
552416bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
tests/test_fmt_helper.cpp
tests/test_fmt_helper.cpp
+2
-4
No files found.
tests/test_fmt_helper.cpp
View file @
b2735eb3
...
@@ -8,7 +8,7 @@ void test_pad2(int n, const char *expected)
...
@@ -8,7 +8,7 @@ void test_pad2(int n, const char *expected)
REQUIRE
(
fmt
::
to_string
(
buf
)
==
expected
);
REQUIRE
(
fmt
::
to_string
(
buf
)
==
expected
);
}
}
void
test_pad3
(
in
t
n
,
const
char
*
expected
)
void
test_pad3
(
uint32_
t
n
,
const
char
*
expected
)
{
{
fmt
::
memory_buffer
buf
;
fmt
::
memory_buffer
buf
;
spdlog
::
details
::
fmt_helper
::
pad3
(
n
,
buf
);
spdlog
::
details
::
fmt_helper
::
pad3
(
n
,
buf
);
...
@@ -46,7 +46,6 @@ TEST_CASE("pad3", "[fmt_helper]")
...
@@ -46,7 +46,6 @@ TEST_CASE("pad3", "[fmt_helper]")
test_pad3
(
23
,
"023"
);
test_pad3
(
23
,
"023"
);
test_pad3
(
123
,
"123"
);
test_pad3
(
123
,
"123"
);
test_pad3
(
1234
,
"1234"
);
test_pad3
(
1234
,
"1234"
);
test_pad3
(
-
5
,
"-05"
);
}
}
TEST_CASE
(
"pad6"
,
"[fmt_helper]"
)
TEST_CASE
(
"pad6"
,
"[fmt_helper]"
)
...
@@ -60,10 +59,9 @@ TEST_CASE("pad6", "[fmt_helper]")
...
@@ -60,10 +59,9 @@ TEST_CASE("pad6", "[fmt_helper]")
test_pad6
(
123456
,
"123456"
);
test_pad6
(
123456
,
"123456"
);
}
}
TEST_CASE
(
"pad9"
,
"[fmt_helper]"
)
TEST_CASE
(
"pad9"
,
"[fmt_helper]"
)
{
{
test_pad9
(
0
,
"000000000"
);
test_pad9
(
0
,
"000000000"
);
test_pad9
(
3
,
"000000003"
);
test_pad9
(
3
,
"000000003"
);
test_pad9
(
23
,
"000000023"
);
test_pad9
(
23
,
"000000023"
);
test_pad9
(
123
,
"000000123"
);
test_pad9
(
123
,
"000000123"
);
...
...
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