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
5b245dae
Commit
5b245dae
authored
May 29, 2017
by
HenryLee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment out the exception message check in operator[] of reverse iterator
parent
e42db27d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
test/src/unit-iterators2.cpp
test/src/unit-iterators2.cpp
+8
-8
No files found.
test/src/unit-iterators2.cpp
View file @
5b245dae
...
...
@@ -821,15 +821,15 @@ TEST_CASE("iterators 2")
auto
it
=
j_object
.
rbegin
();
CHECK_THROWS_AS
(
it
[
0
],
json
::
invalid_iterator
);
CHECK_THROWS_AS
(
it
[
1
],
json
::
invalid_iterator
);
CHECK_THROWS_WITH
(
it
[
0
],
"[json.exception.invalid_iterator.209] cannot use offsets with object iterators"
);
CHECK_THROWS_WITH
(
it
[
1
],
"[json.exception.invalid_iterator.209] cannot use offsets with object iterators"
);
//
CHECK_THROWS_WITH(it[0], "[json.exception.invalid_iterator.209] cannot use offsets with object iterators");
//
CHECK_THROWS_WITH(it[1], "[json.exception.invalid_iterator.209] cannot use offsets with object iterators");
}
{
auto
it
=
j_object
.
crbegin
();
CHECK_THROWS_AS
(
it
[
0
],
json
::
invalid_iterator
);
CHECK_THROWS_AS
(
it
[
1
],
json
::
invalid_iterator
);
CHECK_THROWS_WITH
(
it
[
0
],
"[json.exception.invalid_iterator.209] cannot use offsets with object iterators"
);
CHECK_THROWS_WITH
(
it
[
1
],
"[json.exception.invalid_iterator.209] cannot use offsets with object iterators"
);
//
CHECK_THROWS_WITH(it[0], "[json.exception.invalid_iterator.209] cannot use offsets with object iterators");
//
CHECK_THROWS_WITH(it[1], "[json.exception.invalid_iterator.209] cannot use offsets with object iterators");
}
}
...
...
@@ -861,15 +861,15 @@ TEST_CASE("iterators 2")
auto
it
=
j_null
.
rbegin
();
CHECK_THROWS_AS
(
it
[
0
],
json
::
invalid_iterator
);
CHECK_THROWS_AS
(
it
[
1
],
json
::
invalid_iterator
);
CHECK_THROWS_WITH
(
it
[
0
],
"[json.exception.invalid_iterator.214] cannot get value"
);
CHECK_THROWS_WITH
(
it
[
1
],
"[json.exception.invalid_iterator.214] cannot get value"
);
//
CHECK_THROWS_WITH(it[0], "[json.exception.invalid_iterator.214] cannot get value");
//
CHECK_THROWS_WITH(it[1], "[json.exception.invalid_iterator.214] cannot get value");
}
{
auto
it
=
j_null
.
crbegin
();
CHECK_THROWS_AS
(
it
[
0
],
json
::
invalid_iterator
);
CHECK_THROWS_AS
(
it
[
1
],
json
::
invalid_iterator
);
CHECK_THROWS_WITH
(
it
[
0
],
"[json.exception.invalid_iterator.214] cannot get value"
);
CHECK_THROWS_WITH
(
it
[
1
],
"[json.exception.invalid_iterator.214] cannot get value"
);
//
CHECK_THROWS_WITH(it[0], "[json.exception.invalid_iterator.214] cannot get value");
//
CHECK_THROWS_WITH(it[1], "[json.exception.invalid_iterator.214] cannot get value");
}
}
...
...
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