diff UnitTestsSources/VersionsTests.cpp @ 2497:0611aa383e62

Upgrade to JsonCpp 1.8.4, and USE_LEGACY_JSONCPP option
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 22 Mar 2018 15:27:00 +0100
parents e779c11c8eb2
children 9d9f2d088dce
line wrap: on
line diff
--- a/UnitTestsSources/VersionsTests.cpp	Thu Mar 22 12:53:20 2018 +0100
+++ b/UnitTestsSources/VersionsTests.cpp	Thu Mar 22 15:27:00 2018 +0100
@@ -164,7 +164,13 @@
 
 TEST(Version, JsonCpp)
 {
-  ASSERT_STREQ("0.10.5", JSONCPP_VERSION_STRING);
+#if ORTHANC_LEGACY_JSONCPP == 1
+  ASSERT_STREQ("0.10.6", JSONCPP_VERSION_STRING);
+#elif ORTHANC_LEGACY_JSONCPP == 0
+  ASSERT_STREQ("1.8.4", JSONCPP_VERSION_STRING);
+#else
+#  error Macro ORTHANC_LEGACY_JSONCPP should be set
+#endif
 }
 
 #endif