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
63ecbfd3
Unverified
Commit
63ecbfd3
authored
Jul 07, 2017
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✅
re-added test
I have no idea why this test has been removed in the first place.
parent
07b78c99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
unit-pointer_access.cpp
test/src/unit-pointer_access.cpp
+2
-2
No files found.
test/src/unit-pointer_access.cpp
View file @
63ecbfd3
...
@@ -257,11 +257,11 @@ TEST_CASE("pointer access")
...
@@ -257,11 +257,11 @@ TEST_CASE("pointer access")
const
test_type
*
p2
=
value
.
get_ptr
<
const
test_type
*>
();
const
test_type
*
p2
=
value
.
get_ptr
<
const
test_type
*>
();
CHECK
(
p1
==
value
.
get_ptr
<
const
test_type
*>
());
CHECK
(
p1
==
value
.
get_ptr
<
const
test_type
*>
());
//
CHECK(*p2 == value.get<test_type>());
CHECK
(
*
p2
==
value
.
get
<
test_type
>
());
const
test_type
*
const
p3
=
value
.
get_ptr
<
const
test_type
*
const
>
();
const
test_type
*
const
p3
=
value
.
get_ptr
<
const
test_type
*
const
>
();
CHECK
(
p1
==
value
.
get_ptr
<
const
test_type
*
const
>
());
CHECK
(
p1
==
value
.
get_ptr
<
const
test_type
*
const
>
());
//
CHECK(*p3 == value.get<test_type>());
CHECK
(
*
p3
==
value
.
get
<
test_type
>
());
// check if null pointers are returned correctly
// check if null pointers are returned correctly
CHECK
(
value
.
get_ptr
<
const
json
::
object_t
*>
()
==
nullptr
);
CHECK
(
value
.
get_ptr
<
const
json
::
object_t
*>
()
==
nullptr
);
...
...
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