Mercurial > hg > orthanc
comparison OrthancFramework/UnitTestsSources/RestApiTests.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 | 80fd140b12ba |
comparison
equal
deleted
inserted
replaced
4393:e8e95b80194f | 4394:f7104e9d044c |
---|---|
341 | 341 |
342 Json::Value m; | 342 Json::Value m; |
343 root.CreateSiteMap(m); | 343 root.CreateSiteMap(m); |
344 | 344 |
345 std::string s; | 345 std::string s; |
346 Toolbox::WriteJson(s, m, false /* styled, not fast */); | 346 Toolbox::WriteStyledJson(s, m); |
347 | 347 |
348 Json::Value d; | 348 Json::Value d; |
349 ASSERT_FALSE(GetDirectory(d, root, "/hello")); | 349 ASSERT_FALSE(GetDirectory(d, root, "/hello")); |
350 | 350 |
351 ASSERT_TRUE(GetDirectory(d, root, "/hello/a")); | 351 ASSERT_TRUE(GetDirectory(d, root, "/hello/a")); |