Clean up test

This commit is contained in:
SkyfallWasTaken 2024-07-01 18:20:32 +01:00
parent 3d7a3a9d44
commit 01ea8485e8
3 changed files with 18 additions and 1 deletions

View file

@ -45,6 +45,7 @@ pub fn diff_items(old: ShopItem, new: ShopItem) -> Option<String> {
#[cfg(test)]
mod test {
use super::*;
use indoc::indoc;
#[test]
fn price_diff() {
@ -62,7 +63,13 @@ mod test {
assert_eq!(
diff_items(old, new),
Some("*Item updated*\n*Name:* Test\n*Price:* 1 → 2".into())
Some(
indoc! {"
*Item updated*
*Name:* Test
*Price:* 1 2"}
.into()
)
);
}
}