File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,10 @@ mod tests {
47
47
#[ test]
48
48
#[ cfg( not( debug_assertions) ) ]
49
49
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 ( ) ;
55
54
assert ! (
56
55
solve(
57
56
& levels,
@@ -69,7 +68,7 @@ mod tests {
69
68
#[ cfg( not( debug_assertions) ) ]
70
69
fn solve_microban ( ) {
71
70
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 ( ) )
73
72
. collect :: < Result < Vec < _ > , _ > > ( )
74
73
. unwrap ( ) ;
75
74
assert ! (
@@ -85,7 +84,7 @@ mod tests {
85
84
#[ test]
86
85
#[ cfg( not( debug_assertions) ) ]
87
86
fn solve_box_world ( ) {
88
- let levels = Level :: load_from_string (
87
+ let levels = Level :: load_from_str (
89
88
& fs:: read_to_string ( "assets/levels/box_world_100.xsb" ) . unwrap ( ) ,
90
89
)
91
90
. collect :: < Result < Vec < _ > , _ > > ( )
You can’t perform that action at this time.
0 commit comments