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
965a70e3
Unverified
Commit
965a70e3
authored
Jan 10, 2018
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔨
optimized output format
parent
fd049676
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
json.hpp
src/json.hpp
+0
-0
unit-ubjson.cpp
test/src/unit-ubjson.cpp
+7
-7
No files found.
src/json.hpp
View file @
965a70e3
This diff is collapsed.
Click to expand it.
test/src/unit-ubjson.cpp
View file @
965a70e3
...
@@ -129,13 +129,13 @@ TEST_CASE("UBJSON")
...
@@ -129,13 +129,13 @@ TEST_CASE("UBJSON")
// check individual bytes
// check individual bytes
CHECK
(
result
[
0
]
==
'L'
);
CHECK
(
result
[
0
]
==
'L'
);
int64_t
restored
=
(
static_cast
<
int64_t
>
(
result
[
1
])
<<
070
)
+
int64_t
restored
=
(
static_cast
<
int64_t
>
(
result
[
1
])
<<
070
)
+
(
static_cast
<
int64_t
>
(
result
[
2
])
<<
060
)
+
(
static_cast
<
int64_t
>
(
result
[
2
])
<<
060
)
+
(
static_cast
<
int64_t
>
(
result
[
3
])
<<
050
)
+
(
static_cast
<
int64_t
>
(
result
[
3
])
<<
050
)
+
(
static_cast
<
int64_t
>
(
result
[
4
])
<<
040
)
+
(
static_cast
<
int64_t
>
(
result
[
4
])
<<
040
)
+
(
static_cast
<
int64_t
>
(
result
[
5
])
<<
030
)
+
(
static_cast
<
int64_t
>
(
result
[
5
])
<<
030
)
+
(
static_cast
<
int64_t
>
(
result
[
6
])
<<
020
)
+
(
static_cast
<
int64_t
>
(
result
[
6
])
<<
020
)
+
(
static_cast
<
int64_t
>
(
result
[
7
])
<<
010
)
+
(
static_cast
<
int64_t
>
(
result
[
7
])
<<
010
)
+
static_cast
<
int64_t
>
(
result
[
8
]);
static_cast
<
int64_t
>
(
result
[
8
]);
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