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
50ee0a62
Unverified
Commit
50ee0a62
authored
Mar 31, 2017
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔨
replaced lookup-tables by switches
parent
4c821c9e
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
912 additions
and
386 deletions
+912
-386
src/json.hpp
src/json.hpp
+911
-385
test/src/unit-class_parser.cpp
test/src/unit-class_parser.cpp
+1
-1
No files found.
src/json.hpp
View file @
50ee0a62
This diff is collapsed.
Click to expand it.
test/src/unit-class_parser.cpp
View file @
50ee0a62
...
...
@@ -659,7 +659,7 @@ TEST_CASE("parser class")
// test case to make sure no comma preceeds the first key
CHECK_THROWS_AS
(
json
::
parser
(
"{,
\"
key
\"
: false}"
).
parse
(),
json
::
parse_error
);
CHECK_THROWS_WITH
(
json
::
parser
(
"{,
\"
key
\"
: false}"
).
parse
(),
"[json.exception.parse_error.101] parse error at 2: syntax error - unexpected ','"
);
"[json.exception.parse_error.101] parse error at 2: syntax error - unexpected ','
; expected string literal
"
);
// test case to make sure an object is properly closed
CHECK_THROWS_AS
(
json
::
parser
(
"[{
\"
key
\"
: false true]"
).
parse
(),
json
::
parse_error
);
CHECK_THROWS_WITH
(
json
::
parser
(
"[{
\"
key
\"
: false true]"
).
parse
(),
...
...
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