Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
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
pistache
Commits
10121026
Commit
10121026
authored
Jan 26, 2019
by
Arthur de Araújo Farias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test case for Pull Request #417.
parent
ea5bdeb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
tests/headers_test.cc
tests/headers_test.cc
+13
-0
No files found.
tests/headers_test.cc
View file @
10121026
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include <algorithm>
#include <algorithm>
#include <chrono>
#include <chrono>
#include <iostream>
using
namespace
Pistache
::
Http
;
using
namespace
Pistache
::
Http
;
...
@@ -238,6 +239,18 @@ TEST(headers_test, date_test_asctime) {
...
@@ -238,6 +239,18 @@ TEST(headers_test, date_test_asctime) {
ASSERT_EQ
(
dd3
,
expected_time_point
);
ASSERT_EQ
(
dd3
,
expected_time_point
);
}
}
TEST
(
headers_test
,
date_test_ostream
)
{
using
namespace
std
::
chrono
;
std
::
ostringstream
os
;
Header
::
Date
d4
;
d4
.
parse
(
"Fri, 25 Jan 2019 21:04:45.000000000 UTC"
);
d4
.
write
(
os
);
ASSERT_EQ
(
"Fri, 25 Jan 2019 21:04:45.000000000 UTC"
,
os
.
str
());
}
TEST
(
headers_test
,
host
)
{
TEST
(
headers_test
,
host
)
{
Header
::
Host
host
;
Header
::
Host
host
;
...
...
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