#[allow(clippy::used_underscore_binding, clippy::all, warnings)]
#[ allow( unused_imports ) ]
use super::*;
#[ allow( unused_imports ) ]
#[ test ]
fn command_form()
{
let got = Child::< &str >::former()
.name( "a" )
.form();
let exp = Child::< &str >
{
name : "a".to_string(),
properties : collection_tools::HashMap::< &str, Property< &str > >::new(),
};
a_id!( got, exp );
let got = Child::< &str >::former()
.name( "a" )
.perform();
let exp = Child::< &str >
{
name : "a".to_string(),
properties : collection_tools::HashMap::< &str, Property< &str > >::new(),
};
a_id!( got, exp );
let got = Child::< &str >::former()
.name( "a" )
.end();
let exp = Child::< &str >
{
name : "a".to_string(),
properties : collection_tools::HashMap::< &str, Property< &str > >::new(),
};
a_id!( got, exp );
}
#[ test ]
fn command_properties()
{
let got = Child::< &str >::former()
.name( "a" )
.properties()
.add( ( "property1", Property::< &str >::new( "property1", 13isize ) ) )
.add( ( "property2", Property::new( "property2", 13isize ) ) )
.add( ( "property2", Property::new( "property2", 113isize ) ) )
.end()
.form();
let exp = Child::< &str >
{
name : "a".to_string(),
properties : collection_tools::hmap!
{
"property1" => Property::new( "property1", 13isize ),
"property2" => Property::new( "property2", 113isize ),
},
};
a_id!( got, exp );
}