don't import mock, just reference directly

This commit is contained in:
Max Bradbury 2020-04-18 10:26:42 +01:00
parent 59068dadc9
commit c5604f2964
1 changed files with 3 additions and 3 deletions

View File

@ -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"));
}