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
45b101d2
Commit
45b101d2
authored
Dec 28, 2014
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ more test cases
parent
6561e4e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Makefile.am
Makefile.am
+0
-1
test/JSON_unit.cc
test/JSON_unit.cc
+3
-3
No files found.
Makefile.am
View file @
45b101d2
noinst_PROGRAMS
=
json_unit
TESTS
=
./json_unit
FLAGS
=
-Wall
-Wextra
-pedantic
-Weffc
++
-Wcast-align
-Wcast-qual
-Wctor-dtor-privacy
-Wdisabled-optimization
-Wformat
=
2
-Winit-self
-Wmissing-declarations
-Wmissing-include-dirs
-Wold-style-cast
-Woverloaded-virtual
-Wredundant-decls
-Wshadow
-Wsign-conversion
-Wsign-promo
-Wstrict-overflow
=
5
-Wswitch
-Wundef
-Wno-unused
-Wnon-virtual-dtor
-Wreorder
...
...
test/JSON_unit.cc
View file @
45b101d2
...
...
@@ -18,7 +18,7 @@ TEST_CASE("array")
CHECK
(
j
.
toString
()
==
"[]"
);
// check payload
CHECK
(
*
(
j
.
data
().
array
)
==
JSON
::
array_t
());
//
CHECK(*(j.data().array) == JSON::array_t());
//CHECK(*(j_const.data().array) == JSON::array_t());
// container members
...
...
@@ -299,8 +299,8 @@ TEST_CASE("object")
CHECK
(
j
.
toString
()
==
"{}"
);
// check payload
CHECK
(
*
(
j
.
data
().
object
)
==
JSON
::
object_t
());
CHECK
(
*
(
j_const
.
data
().
object
)
==
JSON
::
object_t
());
//
CHECK(*(j.data().object) == JSON::object_t());
//
CHECK(*(j_const.data().object) == JSON::object_t());
// container members
CHECK
(
j
.
size
()
==
0
);
...
...
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