move test resources

This commit is contained in:
2020-04-14 00:17:40 +01:00
parent 799a97c4dd
commit bfe679dfc8
20 changed files with 17 additions and 16 deletions

View File

@@ -199,7 +199,7 @@ impl Game {
#[test]
fn test_game_from_string() {
let output = Game::from(
include_str!["../test/resources/default.bitsy"].to_string()
include_str!["test-resources/default.bitsy"].to_string()
);
let expected = mock::game_default();
@@ -210,7 +210,7 @@ fn test_game_from_string() {
#[test]
fn test_game_to_string() {
let output = mock::game_default().to_string();
let expected = include_str!["../test/resources/default.bitsy"].to_string();
let expected = include_str!["test-resources/default.bitsy"].to_string();
assert_eq!(output, expected);
}