From: Ian Jackson Date: Sun, 1 May 2022 18:54:09 +0000 (+0100) Subject: at-currency: Check that descriptions (ie, qts) change X-Git-Tag: otter-1.1.0~333 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fe9743cdd5846bd2f6b5c087c6562ae557cbd54e;p=otter.git at-currency: Check that descriptions (ie, qts) change Signed-off-by: Ian Jackson --- diff --git a/apitest/at-currency.rs b/apitest/at-currency.rs index 003d1ecd..1841a44a 100644 --- a/apitest/at-currency.rs +++ b/apitest/at-currency.rs @@ -21,6 +21,10 @@ impl Ctx { ))?; alice.synchu(&mut a_pieces)?; + let bn_desc = a_pieces[bn].info["desc"].as_str().unwrap(); + assert!( bn_desc.contains("50ƒ"), "{bn_desc}" ); + let _change = a_pieces.find_by_desc_glob("*350ƒ*"); + alice.api_piece(GH::Ungrab, PuSynch((&mut a_pieces, bn)), other_pile)?; alice.synchu(&mut a_pieces)?;