rename mocks to mock
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user