File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,23 @@ BOOST_AUTO_TEST_CASE(test_version_metadata) {
123123 BOOST_CHECK_EQUAL (version_constructed, version);
124124}
125125
126+ BOOST_AUTO_TEST_CASE (test_name_conversion) {
127+ std::string long_name1 = " foo:bar" ;
128+ auto res1 = long_name_to_remote_and_short (long_name1);
129+ BOOST_CHECK_EQUAL (res1.first , " foo" );
130+ BOOST_CHECK_EQUAL (res1.second , " bar" );
131+
132+ std::string long_name2 = " foo:bar:baz" ;
133+ auto res2 = long_name_to_remote_and_short (long_name2);
134+ BOOST_CHECK_EQUAL (res2.first , " foo:bar" );
135+ BOOST_CHECK_EQUAL (res2.second , " baz" );
136+
137+ std::string long_name3 = " foo" ;
138+ auto res3 = long_name_to_remote_and_short (long_name3);
139+ BOOST_CHECK_EQUAL (res3.first , " " );
140+ BOOST_CHECK_EQUAL (res3.second , " foo" );
141+ }
142+
126143BOOST_AUTO_TEST_SUITE_END ()
127144
128145} // namespace sdktests
You can’t perform that action at this time.
0 commit comments