mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-23 03:22:08 +00:00
Add more test coverage for RGBASM (#1256)
This also fixes two bugs: `-1 >>> 32` was -1 not 0, and `macro_FreeArgs` should have been called but wasn't.
This commit is contained in:
@@ -13,9 +13,11 @@ for Q, 2, 31
|
||||
if Q > 2 ; can't represent 0.125 in Q.2
|
||||
assert tan(0.125) == 1.0
|
||||
assert atan(1.0) == 0.125
|
||||
assert atan2(1.0, 1.0) == 0.125
|
||||
else
|
||||
assert tan(0.0) == 0.0
|
||||
assert atan(0.0) == 0.0
|
||||
assert atan2(0.0, 1.0) == 0.0
|
||||
endc
|
||||
endr
|
||||
|
||||
|
||||
Reference in New Issue
Block a user