From: Ian Jackson Date: Sun, 1 May 2022 19:49:35 +0000 (+0100) Subject: at-currency: Add spaces in desc patterns X-Git-Tag: otter-1.1.0~329 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e397cdbcadbb326e32b32e7fd2b9c061dae74084;p=otter.git at-currency: Add spaces in desc patterns We don't want to match numbers which happen to end with our pattern! Signed-off-by: Ian Jackson --- diff --git a/apitest/at-currency.rs b/apitest/at-currency.rs index 8811c216..d6875695 100644 --- a/apitest/at-currency.rs +++ b/apitest/at-currency.rs @@ -21,8 +21,8 @@ impl Ctx { ))?; alice.synchu(&mut a_pieces)?; - a_pieces[bn1].assert_desc_contains("50ƒ"); - let _change = a_pieces.find_by_desc_glob("*350ƒ*"); + a_pieces[bn1].assert_desc_contains(" 50ƒ"); + let _change = a_pieces.find_by_desc_glob("* 350ƒ*"); alice.api_piece(GH::Ungrab, PuSynch((&mut a_pieces, bn1)), other_pile)?; alice.synchu(&mut a_pieces)?;