+ assert cmd.results.as(not null).length == 8
+ end
+
+ fun test_cmd_features_with_filter_public is test do
+ var filter = new ModelFilter(min_visibility = public_visibility)
+ var cmd = new CmdFeatures(test_model, filter, mentity_name = "test_prog::Career")
+ var res = cmd.init_command
+ assert res isa CmdSuccess
+ assert cmd.results.as(not null).length == 5
+ end
+
+ fun test_cmd_features_with_filter_match is test do
+ var filter = new ModelFilter(accept_full_name = "endurance")
+ var cmd = new CmdFeatures(test_model, filter, mentity_name = "test_prog::Career")
+ var res = cmd.init_command
+ assert res isa CmdSuccess
+ assert cmd.results.as(not null).length == 3
+ end
+
+ fun test_cmd_features_with_filter_inh is test do
+ var context = test_model.mentity_by_full_name("test_prog::TestGame").as(not null)
+ var filter = new ModelFilter(accept_inherited = context)
+ var cmd = new CmdFeatures(test_model, filter, mentity_name = "test_prog::TestGame")
+ var res = cmd.init_command
+ assert res isa CmdSuccess
+ assert cmd.results.as(not null).length == 4