Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
83f614eb
Commit
83f614eb
authored
Apr 03, 2020
by
LEFEBVREJP email
Browse files
Removed copy of test json file to build directory.
parent
e340e6b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
radixcore/tests/CMakeLists.txt
View file @
83f614eb
...
...
@@ -5,4 +5,3 @@ ADD_GOOGLE_TEST(tstString.cc NP 1)
ADD_GOOGLE_TEST
(
tstSystem.cc NP 1
)
ADD_GOOGLE_TEST
(
tstValue.cc NP 1
)
configure_file
(
testfiles/wellformed.json testfiles/wellformed.json COPYONLY
)
radixcore/tests/tstJson.cc
View file @
83f614eb
#include
"gtest/gtest.h"
#include
"radixcore/json.hh"
#include
"radixcore/system.hh"
using
namespace
radix
;
...
...
@@ -14,8 +15,10 @@ TEST(JSONParser, parse_from_file)
{
{
JSONParser
sunnyDay
;
std
::
string
filename
=
"testfiles/wellformed.json"
;
bool
success
=
sunnyDay
.
parse_from_file
(
filename
);
std
::
string
filename
=
to_native_path
(
dirname
(
__FILE__
)
+
"/testfiles/wellformed.json"
);
// std::cout << "Test file: " << filename << std::endl;
bool
success
=
sunnyDay
.
parse_from_file
(
filename
);
EXPECT_TRUE
(
success
);
// not really an error just the null terminating at eof
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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