From c5604f2964e37b29e5cbd5dd3ecc325cd8d92f04 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sat, 18 Apr 2020 10:26:42 +0100 Subject: [PATCH] don't import mock, just reference directly --- src/avatar.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/avatar.rs b/src/avatar.rs index 75ea8fa..9061d95 100644 --- a/src/avatar.rs +++ b/src/avatar.rs @@ -1,4 +1,4 @@ -use crate::{AnimationFrames, Image, mock, Position, optional_data_line, ToBase36, from_base36}; +use crate::{AnimationFrames, Image, Position, optional_data_line, ToBase36, from_base36}; /// avatar is a "sprite" in the game data but with a specific id #[derive(Debug, Eq, PartialEq)] @@ -80,10 +80,10 @@ fn test_avatar_from_string() { include_str!("test-resources/avatar").to_string() ); - assert_eq!(output, mock::avatar()); + assert_eq!(output, crate::mock::avatar()); } #[test] fn test_avatar_to_string() { - assert_eq!(mock::avatar().to_string(), include_str!("test-resources/avatar")); + assert_eq!(crate::mock::avatar().to_string(), include_str!("test-resources/avatar")); }