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
17c9b17a
Commit
17c9b17a
authored
Dec 07, 2016
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✅
test cases from RFC 7049 #384
parent
aab9bbbb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
unit-cbor.cpp
test/src/unit-cbor.cpp
+0
-0
unit-msgpack.cpp
test/src/unit-msgpack.cpp
+3
-3
No files found.
test/src/unit-cbor.cpp
View file @
17c9b17a
This diff is collapsed.
Click to expand it.
test/src/unit-msgpack.cpp
View file @
17c9b17a
...
@@ -257,9 +257,9 @@ TEST_CASE("MessagePack")
...
@@ -257,9 +257,9 @@ TEST_CASE("MessagePack")
// check individual bytes
// check individual bytes
CHECK
(
result
[
0
]
==
0xd2
);
CHECK
(
result
[
0
]
==
0xd2
);
uint32_t
restored
=
static_cast
<
uint32_t
>
((
static_cast
<
uint32_t
>
(
result
[
1
])
<<
030
)
+
uint32_t
restored
=
static_cast
<
uint32_t
>
((
static_cast
<
uint32_t
>
(
result
[
1
])
<<
030
)
+
(
static_cast
<
uint32_t
>
(
result
[
2
])
<<
020
)
+
(
static_cast
<
uint32_t
>
(
result
[
2
])
<<
020
)
+
(
static_cast
<
uint32_t
>
(
result
[
3
])
<<
010
)
+
(
static_cast
<
uint32_t
>
(
result
[
3
])
<<
010
)
+
static_cast
<
uint32_t
>
(
result
[
4
]));
static_cast
<
uint32_t
>
(
result
[
4
]));
CHECK
(
restored
==
i
);
CHECK
(
restored
==
i
);
// roundtrip
// roundtrip
...
...
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