Skip to content

Commit

Permalink
Update test method in wca_hello_test
Browse files Browse the repository at this point in the history
The main action of this commit is updating the test method in wca_hello_test. An import statement was added at the start of the file to include Args from module wca. Additionally, the routine method was updated to use the '.end()' method instead of '.perform()'. These changes were necessary to properly test the functionalities of the wca module.
  • Loading branch information
Barsik-sus committed Mar 7, 2024
1 parent fb31da4 commit 11c5fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/move/wca/tests/assets/wca_hello_test/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ fn main()
use wca::
{
CommandsAggregator, Command, Routine, Type,
Args,
};

let ca = wca::CommandsAggregator::former()
Expand All @@ -11,7 +12,7 @@ fn main()
.subject( "Subject", Type::String, true )
.property( "property", "simple property", Type::String, true )
.routine( | args : Args, props | { println!( "= Args\n{args:?}\n\n= Properties\n{props:?}\n" ) } )
.perform()
.end()
.perform();

let args = std::env::args().skip( 1 ).collect::< Vec< String > >();
Expand Down

0 comments on commit 11c5fb6

Please sign in to comment.