rename mocks to mock

This commit is contained in:
2020-04-12 13:50:07 +01:00
parent 6090d36559
commit 1426102e67
7 changed files with 15 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
use crate::{AnimationFrames, Image, Position, mocks};
use crate::{AnimationFrames, Image, Position, mock};
#[derive(Debug, Eq, PartialEq)]
pub struct Sprite {
@@ -73,12 +73,12 @@ fn test_sprite_from_string() {
include_str!("../test/resources/sprite").to_string()
);
let expected = mocks::sprite();
let expected = mock::sprite();
assert_eq!(output, expected);
}
#[test]
fn test_sprite_to_string() {
assert_eq!(mocks::sprite().to_string(), include_str!("../test/resources/sprite").to_string());
assert_eq!(mock::sprite().to_string(), include_str!("../test/resources/sprite").to_string());
}