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
4d39644b
Unverified
Commit
4d39644b
authored
May 19, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
💚
fix build
parent
21b1680e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
macos.yml
.github/workflows/macos.yml
+1
-1
ubuntu.yml
.github/workflows/ubuntu.yml
+1
-1
windows.yml
.github/workflows/windows.yml
+1
-1
unit-bson.cpp
test/src/unit-bson.cpp
+1
-1
unit-udt.cpp
test/src/unit-udt.cpp
+5
-2
No files found.
.github/workflows/macos.yml
View file @
4d39644b
...
@@ -14,4 +14,4 @@ jobs:
...
@@ -14,4 +14,4 @@ jobs:
-
name
:
build
-
name
:
build
run
:
cmake --build build --parallel 10
run
:
cmake --build build --parallel 10
-
name
:
test
-
name
:
test
run
:
cd build ; ctest -j 10
run
:
cd build ; ctest -j 10
--output-on-failure
.github/workflows/ubuntu.yml
View file @
4d39644b
...
@@ -14,4 +14,4 @@ jobs:
...
@@ -14,4 +14,4 @@ jobs:
-
name
:
build
-
name
:
build
run
:
cmake --build build --parallel 10
run
:
cmake --build build --parallel 10
-
name
:
test
-
name
:
test
run
:
cd build ; ctest -j 10
run
:
cd build ; ctest -j 10
--output-on-failure
.github/workflows/windows.yml
View file @
4d39644b
...
@@ -14,4 +14,4 @@ jobs:
...
@@ -14,4 +14,4 @@ jobs:
-
name
:
build
-
name
:
build
run
:
cmake --build build --parallel 10
run
:
cmake --build build --parallel 10
-
name
:
test
-
name
:
test
run
:
cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode"
run
:
cd build ; ctest -j 10 -C Debug --exclude-regex "test-unicode"
--output-on-failure
test/src/unit-bson.cpp
View file @
4d39644b
...
@@ -499,7 +499,7 @@ TEST_CASE("BSON")
...
@@ -499,7 +499,7 @@ TEST_CASE("BSON")
const
auto
s
=
std
::
vector
<
std
::
uint8_t
>
(
N
,
'x'
);
const
auto
s
=
std
::
vector
<
std
::
uint8_t
>
(
N
,
'x'
);
json
j
=
json
j
=
{
{
{
"entry"
,
json
::
binary
(
s
)
}
{
"entry"
,
json
::
binary
(
s
,
0
)
}
};
};
std
::
vector
<
std
::
uint8_t
>
expected
=
std
::
vector
<
std
::
uint8_t
>
expected
=
...
...
test/src/unit-udt.cpp
View file @
4d39644b
...
@@ -765,9 +765,12 @@ TEST_CASE("different basic_json types conversions")
...
@@ -765,9 +765,12 @@ TEST_CASE("different basic_json types conversions")
SECTION
(
"binary"
)
SECTION
(
"binary"
)
{
{
json
j
=
json
::
binary
({
1
,
2
,
3
});
json
j
=
json
::
binary
({
1
,
2
,
3
}
,
42
);
custom_json
cj
=
j
;
custom_json
cj
=
j
;
CHECK
(
cj
.
get_binary
()
==
j
.
get_binary
());
CHECK
(
cj
.
get_binary
().
subtype
()
==
42
);
std
::
vector
<
std
::
uint8_t
>
cv
=
cj
.
get_binary
();
std
::
vector
<
std
::
uint8_t
>
v
=
j
.
get_binary
();
CHECK
(
cv
==
v
);
}
}
SECTION
(
"object"
)
SECTION
(
"object"
)
...
...
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