From e397cdbcadbb326e32b32e7fd2b9c061dae74084 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 1 May 2022 20:49:35 +0100 Subject: [PATCH] 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 --- apitest/at-currency.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)?; -- 2.30.2