From c7105e964d5e21929a8d152ecf89658e40bd08c0 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 20 Oct 2022 10:48:05 -0400 Subject: [PATCH] Add test_deconstruct --- src/equipment.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/equipment.rs b/src/equipment.rs index 1f34d09..5aa905b 100755 --- a/src/equipment.rs +++ b/src/equipment.rs @@ -111,4 +111,12 @@ mod tests { "chara/equipment/e0000/model/c0101e0000_top.mdl" ); } + + #[test] + fn test_deconstruct() { + assert_eq!( + deconstruct_equipment_path("c0101e0000_top.mdl"), + Some((0, Slot::Body)) + ); + } }