Mercurial > hg > orthanc
diff UnitTestsSources/UnitTestsMain.cpp @ 3259:6f9398eb902d
unit test Toolbox.SubstituteVariables
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 18 Feb 2019 20:42:21 +0100 |
parents | 45e1631febbb |
children | b32b7c44a223 |
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp Mon Feb 18 18:43:40 2019 +0100 +++ b/UnitTestsSources/UnitTestsMain.cpp Mon Feb 18 20:42:21 2019 +0100 @@ -1235,9 +1235,11 @@ // The "PATH" environment variable should always be available on // machines running the unit tests - ASSERT_TRUE(env.find("PATH") != env.end()); + ASSERT_TRUE(env.find("PATH") != env.end() /* Case used by UNIX */ || + env.find("Path") != env.end() /* Case used by Windows */); - ASSERT_EQ("A" + env["PATH"] + "B", + env["PATH"] = "hello"; + ASSERT_EQ("AhelloB", Toolbox::SubstituteVariables("A${PATH}B", env)); }