Mercurial > hg > orthanc
diff UnitTestsSources/UnitTestsMain.cpp @ 2411:82d5e305fbd9
fix gcc warnings in unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 Sep 2017 10:16:28 +0200 |
parents | ae50eccd41b7 |
children | 330349d712f9 |
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp Fri Sep 29 10:13:52 2017 +0200 +++ b/UnitTestsSources/UnitTestsMain.cpp Fri Sep 29 10:16:28 2017 +0200 @@ -977,7 +977,7 @@ v = Json::objectValue; ASSERT_EQ("nope", Toolbox::GetJsonStringField(v, "hello", "nope")); ASSERT_EQ(-10, Toolbox::GetJsonIntegerField(v, "hello", -10)); - ASSERT_EQ(10, Toolbox::GetJsonUnsignedIntegerField(v, "hello", 10)); + ASSERT_EQ(10u, Toolbox::GetJsonUnsignedIntegerField(v, "hello", 10)); ASSERT_TRUE(Toolbox::GetJsonBooleanField(v, "hello", true)); v["hello"] = "world"; @@ -995,7 +995,7 @@ v["hello"] = 42; ASSERT_THROW(Toolbox::GetJsonStringField(v, "hello", "nope"), OrthancException); ASSERT_EQ(42, Toolbox::GetJsonIntegerField(v, "hello", -10)); - ASSERT_EQ(42, Toolbox::GetJsonUnsignedIntegerField(v, "hello", 10)); + ASSERT_EQ(42u, Toolbox::GetJsonUnsignedIntegerField(v, "hello", 10)); ASSERT_THROW(Toolbox::GetJsonBooleanField(v, "hello", true), OrthancException); v["hello"] = false;