@@ -52,6 +52,7 @@ const char module_nap[] = "module-name::x86_64/profile";
52
52
const char module_nsvca[] = " module-name:stream:1:b86c854:x86_64" ;
53
53
const char module_nsva[] = " module-name:stream:1::x86_64" ;
54
54
const char module_nsvc[] = " module-name:stream:1:b86c854" ;
55
+ const char module_nsvc2[] = " module-name:stream:1:muj-cont_ext.5" ;
55
56
const char module_nsv[] = " module-name:stream:1" ;
56
57
const char module_nsa[] = " module-name:stream::x86_64" ;
57
58
const char module_ns[] = " module-name:stream" ;
@@ -222,6 +223,17 @@ START_TEST(module_form_nsvc)
222
223
}
223
224
END_TEST
224
225
226
+ START_TEST (module_form_nsvc2)
227
+ {
228
+ libdnf::Nsvcap nsvcap;
229
+ ck_assert (nsvcap.parse (module_nsvc2, HY_MODULE_FORM_NSVC));
230
+ ck_assert_str_eq (nsvcap.getName ().c_str (), " module-name" );
231
+ ck_assert_str_eq (nsvcap.getStream ().c_str (), " stream" );
232
+ ck_assert_str_eq (nsvcap.getVersion ().c_str (), " 1" );
233
+ ck_assert_str_eq (nsvcap.getContext ().c_str (), " muj-cont_ext.5" );
234
+ }
235
+ END_TEST
236
+
225
237
START_TEST (module_form_nsv)
226
238
{
227
239
libdnf::Nsvcap nsvcap;
@@ -325,6 +337,7 @@ subject_suite(void)
325
337
tcase_add_test (tc, module_form_nsva);
326
338
tcase_add_test (tc, module_form_nsvp);
327
339
tcase_add_test (tc, module_form_nsvc);
340
+ tcase_add_test (tc, module_form_nsvc2);
328
341
tcase_add_test (tc, module_form_nsv);
329
342
tcase_add_test (tc, module_form_nsap);
330
343
tcase_add_test (tc, module_form_nsa);
0 commit comments