use super::*;
fn vec_as_ref< T >( src : &Vec< T > ) -> Vec< &str >
where
T : AsRef< str >,
{
src.iter().map( | e | e.as_ref() ).collect::< Vec< &str > >()
}
tests_impls!
{
#[ test ]
fn instruction_parse_from_splits_basic()
{
let args = vec![ ".struct1", "subject1", "subject2" ];
let instruction = TheModule::instruction::parse_from_splits( args.iter() );
a_id!( instruction.command_name.as_ref(), ".struct1" );
a_id!( vec_as_ref( &instruction.subject ), vec![ "subject1", "subject2" ] );
a_id!( instruction.properties_map, hmap!{} );
}
}
tests_index!
{
instruction_parse_from_splits_basic,
}