From 4ebfec02efa39adda8339ca8ec7fc92350d5ff14 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 19 Jul 2020 08:45:57 +0100 Subject: [PATCH] fix test for new bitsy version --- src/game.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/game.rs b/src/game.rs index 8d04a11..7f88788 100644 --- a/src/game.rs +++ b/src/game.rs @@ -925,7 +925,12 @@ mod test { let mut game = crate::mock::game_default(); game.add_item(crate::mock::item()); game.add_item(crate::mock::item()); - assert_eq!(game.item_ids(), vec!["0".to_string(), "6".to_string(), "1".to_string()]); + + let expected = vec![ + "0".to_string(), "1".to_string(), "6".to_string(), "2".to_string() + ]; + + assert_eq!(game.item_ids(), expected); } #[test]