File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ fn test_floor() {
43
43
emu. memory . iram_raw [ labels:: get ( "autorepeatY" ) as usize ] = 0 ;
44
44
emu. memory . iram_raw [ labels:: get ( "vramRow" ) as usize ] = 0 ;
45
45
46
- playfield:: set_str ( & mut emu, r##"
46
+ playfield:: set_str ( & mut emu, r##"
47
47
##### ####
48
48
##### ####
49
49
##### ####
@@ -57,6 +57,11 @@ fn test_floor() {
57
57
for i in 0 ..40 {
58
58
assert_eq ! ( emu. memory. iram_raw[ i + labels:: get( "playfield" ) as usize ] , 0xEF ) ;
59
59
}
60
+
61
+ // check the floor is there
62
+ assert_ne ! ( playfield:: get( & mut emu, 0 , 19 ) , 0xEF ) ;
63
+ // but the row above isn't
64
+ assert_eq ! ( playfield:: get( & mut emu, 0 , 18 ) , 0xEF ) ;
60
65
}
61
66
62
67
fn test_floor0 ( ) {
@@ -93,7 +98,7 @@ fn test_floor0() {
93
98
emu. memory . iram_raw [ labels:: get ( "autorepeatY" ) as usize ] = 0 ;
94
99
emu. memory . iram_raw [ labels:: get ( "vramRow" ) as usize ] = 0 ;
95
100
96
- playfield:: set_str ( & mut emu, r##"
101
+ playfield:: set_str ( & mut emu, r##"
97
102
##### ####
98
103
##### ####
99
104
##### ####
You can’t perform that action at this time.
0 commit comments