~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to tests/cpp_unit/JsonCppProcessors/CommonProcessorTest.hh

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include <string>
20
20
 
21
21
#include "src/common_cpp/JsonCppProcessors/Common/ReferenceResolverCppToJson.hh"
 
22
#include "src/common_cpp/JsonCppProcessors/Common/ReferenceResolverJsonToCpp.hh"
22
23
 
23
24
namespace MAUS {
24
25
namespace ProcessorTest {
41
42
    Json::Value* json_out = NULL;
42
43
    json_out = proc->CppToJson(*cpp_type, "");
43
44
    ReferenceResolver::CppToJson::RefManager::GetInstance().ResolveReferences(*json_out);
44
 
    EXPECT_PRED3(JsonWrapper::AlmostEqual, json_in, *json_out, 1e-9);
 
45
    EXPECT_PRED4(JsonWrapper::AlmostEqual, json_in, *json_out, 1e-9, true);
45
46
    delete cpp_type;
46
47
    delete json_out;
47
48
    ReferenceResolver::JsonToCpp::RefManager::Death();