Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
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
json
Commits
851315c8
Commit
851315c8
authored
Jul 19, 2020
by
jprochazk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add regression test
parent
d371a528
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
test/src/unit-regression.cpp
test/src/unit-regression.cpp
+10
-0
No files found.
test/src/unit-regression.cpp
View file @
851315c8
...
...
@@ -1954,6 +1954,16 @@ TEST_CASE("regression tests")
auto
val
=
j
.
value
(
"x"
,
defval
);
auto
val2
=
j
.
value
(
"y"
,
defval
);
}
SECTION
(
"issue #2293 - eof doesnt cause parsing to stop"
)
{
std
::
vector
<
uint8_t
>
data
=
{
0x7B
,
0x6F
,
0x62
,
0x6A
,
0x65
,
0x63
,
0x74
,
0x20
,
0x4F
,
0x42
};
json
result
=
json
::
from_cbor
(
data
,
true
,
false
);
CHECK
(
result
.
is_discarded
());
}
}
#if !defined(JSON_NOEXCEPTION)
...
...
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