Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
58cbf4b3
Commit
58cbf4b3
authored
Aug 31, 2016
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added another test case
parent
ae7aaed4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
unit-deserialization.cpp
test/src/unit-deserialization.cpp
+12
-0
No files found.
test/src/unit-deserialization.cpp
View file @
58cbf4b3
...
@@ -148,6 +148,18 @@ TEST_CASE("deserialization")
...
@@ -148,6 +148,18 @@ TEST_CASE("deserialization")
CHECK
(
json
::
parse
(
v
)
==
json
(
true
));
CHECK
(
json
::
parse
(
v
)
==
json
(
true
));
}
}
SECTION
(
"from chars"
)
{
uint8_t
*
v
=
new
uint8_t
[
5
];
v
[
0
]
=
't'
;
v
[
1
]
=
'r'
;
v
[
2
]
=
'u'
;
v
[
3
]
=
'e'
;
v
[
4
]
=
'\0'
;
CHECK
(
json
::
parse
(
v
)
==
json
(
true
));
delete
[]
v
;
}
SECTION
(
"from std::string"
)
SECTION
(
"from std::string"
)
{
{
std
::
string
v
=
{
't'
,
'r'
,
'u'
,
'e'
};
std
::
string
v
=
{
't'
,
'r'
,
'u'
,
'e'
};
...
...
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