Mercurial > hg > orthanc
comparison OrthancFramework/UnitTestsSources/LuaTests.cpp @ 4394:f7104e9d044c
functions to read/write JSON in OrthancPluginCppWrapper.h
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Dec 2020 08:11:37 +0100 |
parents | 3af1d763763a |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4393:e8e95b80194f | 4394:f7104e9d044c |
---|---|
174 f.PushJson(a); | 174 f.PushJson(a); |
175 std::string s; | 175 std::string s; |
176 f.ExecuteToString(s); | 176 f.ExecuteToString(s); |
177 | 177 |
178 std::string t; | 178 std::string t; |
179 Orthanc::Toolbox::WriteJson(t, a, true /* fast */); | 179 Orthanc::Toolbox::WriteFastJson(t, a); |
180 ASSERT_EQ(s, t); | 180 ASSERT_EQ(s, t); |
181 } | 181 } |
182 } | 182 } |