Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Apr 2, 2024
1 parent 789d394 commit f222120
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[ allow( unused_imports ) ]
use super::*;

#[ derive( Debug, PartialEq ) ]
#[ derive( Default, Debug, PartialEq ) ]
pub struct Struct1
{
vec_1 : Vec< String >,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,25 @@ tests_impls_optional!
a_id!( former.storage.hashset_strings_1, None );
a_id!( former.context, None );

// forming
let command = Struct1::former().form();
a_id!( command.vec_1, Vec::< String >::new() );
a_id!( command.hashmap_strings_1, hmap!{} );
a_id!( command.hashset_strings_1, hset![] );

// performing
let command = Struct1::former().perform();
a_id!( command.vec_1, Vec::< String >::new() );
a_id!( command.hashmap_strings_1, hmap!{} );
a_id!( command.hashset_strings_1, hset![] );

// ending
let command = Struct1::former().end();
a_id!( command.vec_1, Vec::< String >::new() );
a_id!( command.hashmap_strings_1, hmap!{} );
a_id!( command.hashset_strings_1, hset![] );
// form
let got = Struct1::former().form();
let exp = Struct1::default();
a_id!( got, exp );

// preform
let got = Struct1::former().preform();
let exp = Struct1::default();
a_id!( got, exp );

// perform
let got = Struct1::former().perform();
let exp = Struct1::default();
a_id!( got, exp );

// end
let got = Struct1::former().end();
let exp = Struct1::default();
a_id!( got, exp );

}

Expand Down

0 comments on commit f222120

Please sign in to comment.