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
4d286947
Unverified
Commit
4d286947
authored
Jul 11, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
♻
replace further alternative operators
parent
8d295235
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
test/src/unit-assert_macro.cpp
test/src/unit-assert_macro.cpp
+1
-1
test/src/unit-class_parser.cpp
test/src/unit-class_parser.cpp
+1
-1
No files found.
test/src/unit-assert_macro.cpp
View file @
4d286947
...
@@ -44,7 +44,7 @@ static int assert_counter;
...
@@ -44,7 +44,7 @@ static int assert_counter;
using
nlohmann
::
json
;
using
nlohmann
::
json
;
// the test assumes exceptions to work
// the test assumes exceptions to work
#if
not
defined(JSON_NOEXCEPTION)
#if
!
defined(JSON_NOEXCEPTION)
TEST_CASE
(
"JSON_ASSERT(x)"
)
TEST_CASE
(
"JSON_ASSERT(x)"
)
{
{
SECTION
(
"basic_json(first, second)"
)
SECTION
(
"basic_json(first, second)"
)
...
...
test/src/unit-class_parser.cpp
View file @
4d286947
...
@@ -314,7 +314,7 @@ void comments_helper(const std::string& s)
...
@@ -314,7 +314,7 @@ void comments_helper(const std::string& s)
{
{
CAPTURE
(
json_with_comment
)
CAPTURE
(
json_with_comment
)
CHECK_THROWS_AS
(
_
=
json
::
parse
(
json_with_comment
),
json
::
parse_error
);
CHECK_THROWS_AS
(
_
=
json
::
parse
(
json_with_comment
),
json
::
parse_error
);
CHECK
(
not
json
::
accept
(
json_with_comment
));
CHECK
(
!
json
::
accept
(
json_with_comment
));
CHECK_NOTHROW
(
_
=
json
::
parse
(
json_with_comment
,
nullptr
,
true
,
true
));
CHECK_NOTHROW
(
_
=
json
::
parse
(
json_with_comment
,
nullptr
,
true
,
true
));
CHECK
(
json
::
accept
(
json_with_comment
,
true
));
CHECK
(
json
::
accept
(
json_with_comment
,
true
));
...
...
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