Skip to content

Commit 7d9eef3

Browse files
committed
Merge branch 'main' into fix-rapid-movement
2 parents 2283005 + 3bffe32 commit 7d9eef3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/test.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ mod tests {
4747
#[test]
4848
#[cfg(not(debug_assertions))]
4949
fn solve_microban_2() {
50-
let levels = Level::load_from_string(
51-
&fs::read_to_string("assets/levels/microban_II_135.xsb").unwrap(),
52-
)
53-
.collect::<Result<Vec<_>, _>>()
54-
.unwrap();
50+
let levels =
51+
Level::load_from_str(&fs::read_to_string("assets/levels/microban_II_135.xsb").unwrap())
52+
.collect::<Result<Vec<_>, _>>()
53+
.unwrap();
5554
assert!(
5655
solve(
5756
&levels,
@@ -69,7 +68,7 @@ mod tests {
6968
#[cfg(not(debug_assertions))]
7069
fn solve_microban() {
7170
let levels =
72-
Level::load_from_string(&fs::read_to_string("assets/levels/microban_155.xsb").unwrap())
71+
Level::load_from_str(&fs::read_to_string("assets/levels/microban_155.xsb").unwrap())
7372
.collect::<Result<Vec<_>, _>>()
7473
.unwrap();
7574
assert!(
@@ -85,7 +84,7 @@ mod tests {
8584
#[test]
8685
#[cfg(not(debug_assertions))]
8786
fn solve_box_world() {
88-
let levels = Level::load_from_string(
87+
let levels = Level::load_from_str(
8988
&fs::read_to_string("assets/levels/box_world_100.xsb").unwrap(),
9089
)
9190
.collect::<Result<Vec<_>, _>>()

0 commit comments

Comments
 (0)