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
45b101d2
Commit
45b101d2
authored
Dec 28, 2014
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ more test cases
parent
6561e4e4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Makefile.am
Makefile.am
+0
-1
JSON_unit.cc
test/JSON_unit.cc
+3
-3
No files found.
Makefile.am
View file @
45b101d2
noinst_PROGRAMS
=
json_unit
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
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")
...
@@ -18,7 +18,7 @@ TEST_CASE("array")
CHECK
(
j
.
toString
()
==
"[]"
);
CHECK
(
j
.
toString
()
==
"[]"
);
// check payload
// check payload
CHECK
(
*
(
j
.
data
().
array
)
==
JSON
::
array_t
());
//
CHECK(*(j.data().array) == JSON::array_t());
//CHECK(*(j_const.data().array) == JSON::array_t());
//CHECK(*(j_const.data().array) == JSON::array_t());
// container members
// container members
...
@@ -299,8 +299,8 @@ TEST_CASE("object")
...
@@ -299,8 +299,8 @@ TEST_CASE("object")
CHECK
(
j
.
toString
()
==
"{}"
);
CHECK
(
j
.
toString
()
==
"{}"
);
// check payload
// check payload
CHECK
(
*
(
j
.
data
().
object
)
==
JSON
::
object_t
());
//
CHECK(*(j.data().object) == JSON::object_t());
CHECK
(
*
(
j_const
.
data
().
object
)
==
JSON
::
object_t
());
//
CHECK(*(j_const.data().object) == JSON::object_t());
// container members
// container members
CHECK
(
j
.
size
()
==
0
);
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