]> git.sesse.net Git - casparcg/blobdiff - unit-test/param_test.cpp
[ffmpeg] Ported 2.0.7 ffmpeg producer to 2.1.0 while still keeping the usage of the...
[casparcg] / unit-test / param_test.cpp
index 03c0247db3891a3d298a4faa4b763c181a2f1d9e..76dcdea289acc059952bd0721ca5505df24c2699 100644 (file)
 
 #include <gtest/gtest.h>
 
-#include <boost/assign.hpp>
-
 #include <common/param.h>
 
 namespace {
-       static auto params = boost::assign::list_of<std::wstring>
-                       (L"param1")(L"1")
-                       (L"param2")(L"string value");
+       static auto params = {
+               L"param1", L"1",
+               L"param2", L"string value" };
 }
 
 namespace caspar {
@@ -49,7 +47,7 @@ TEST(ParamTest, GetDefaultValue)
 
 TEST(ParamTest, InvalidLexicalCast)
 {
-       EXPECT_THROW(get_param<bool>(L"param2", params), invalid_argument);
+       EXPECT_THROW(get_param<bool>(L"param2", params), user_error);
 }
 
 }