Skip to content

Commit

Permalink
Merge branch 'main' into fix-rapid-movement
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenMian committed Jan 19, 2025
2 parents 2283005 + 3bffe32 commit 7d9eef3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ mod tests {
#[test]
#[cfg(not(debug_assertions))]
fn solve_microban_2() {
let levels = Level::load_from_string(
&fs::read_to_string("assets/levels/microban_II_135.xsb").unwrap(),
)
.collect::<Result<Vec<_>, _>>()
.unwrap();
let levels =
Level::load_from_str(&fs::read_to_string("assets/levels/microban_II_135.xsb").unwrap())
.collect::<Result<Vec<_>, _>>()
.unwrap();
assert!(
solve(
&levels,
Expand All @@ -69,7 +68,7 @@ mod tests {
#[cfg(not(debug_assertions))]
fn solve_microban() {
let levels =
Level::load_from_string(&fs::read_to_string("assets/levels/microban_155.xsb").unwrap())
Level::load_from_str(&fs::read_to_string("assets/levels/microban_155.xsb").unwrap())
.collect::<Result<Vec<_>, _>>()
.unwrap();
assert!(
Expand All @@ -85,7 +84,7 @@ mod tests {
#[test]
#[cfg(not(debug_assertions))]
fn solve_box_world() {
let levels = Level::load_from_string(
let levels = Level::load_from_str(
&fs::read_to_string("assets/levels/box_world_100.xsb").unwrap(),
)
.collect::<Result<Vec<_>, _>>()
Expand Down

0 comments on commit 7d9eef3

Please sign in to comment.