Commit 83f614eb authored by Lefebvre, Jordan's avatar Lefebvre, Jordan

Removed copy of test json file to build directory.

parent e340e6b0
......@@ -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)
#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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment