mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
Update test for new interface
This commit is contained in:
parent
6ab644cf71
commit
46562e275c
|
@ -145,7 +145,9 @@ pub fn affine_matrix(x_scale: Num<8>, y_scale: Num<8>, rotation: u8) -> AffineMa
|
||||||
#[test_case]
|
#[test_case]
|
||||||
fn affine(_gba: &mut crate::Gba) {
|
fn affine(_gba: &mut crate::Gba) {
|
||||||
// expect identity matrix
|
// expect identity matrix
|
||||||
let aff = affine_matrix(1 << 8, 1 << 8, 0);
|
let one: Num<8> = 1.into();
|
||||||
assert_eq!(aff.p_a, 1 << 8);
|
|
||||||
assert_eq!(aff.p_d, 1 << 8);
|
let aff = affine_matrix(one, one, 0);
|
||||||
|
assert_eq!(aff.p_a, one.to_raw() as i16);
|
||||||
|
assert_eq!(aff.p_d, one.to_raw() as i16);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue