c++/infra: test also move from boost::variant
@@ -246,6 +246,8 @@ TEST(TestResult, smokeTest)
EXPECT_EQ(nullptr, boost::get<TestResult>(&res));
EXPECT_NE(nullptr, boost::get<RustString>(&res));
EXPECT_EQ(std::string("this is error"), boost::get<RustString>(res).to_std_string());
+ RustString err_msg = boost::get<RustString>(std::move(res));
+ EXPECT_EQ(std::string("this is error"), err_msg.to_std_string());
#endif //USE_BOOST
}
#endif
