Skip to content
Snippets Groups Projects
Commit 22601445 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

feat(cucumber) subject agreement

parent 4b4578e5
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !56. Comments created here will be created in the context of that merge request.
......@@ -119,7 +119,7 @@ fn parse_amount(amount: u64, unit: &str) -> (u64, bool) {
}
}
#[given(regex = r"([a-zA-Z]+) have (\d+) (ĞD|cĞD|UD|mUD)")]
#[given(regex = r"([a-zA-Z]+) ha(?:ve|s) (\d+) (ĞD|cĞD|UD|mUD)")]
async fn who_have(world: &mut DuniterWorld, who: String, amount: u64, unit: String) -> Result<()> {
// Parse inputs
let who = AccountKeyring::from_str(&who).expect("unknown to");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment