From 46562e275c485eda962dd4a59513a35c4c537d02 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 5 Jun 2021 20:31:04 +0100 Subject: [PATCH] Update test for new interface --- agb/src/syscall.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/agb/src/syscall.rs b/agb/src/syscall.rs index 0129daf0..b30cb6a4 100644 --- a/agb/src/syscall.rs +++ b/agb/src/syscall.rs @@ -145,7 +145,9 @@ pub fn affine_matrix(x_scale: Num<8>, y_scale: Num<8>, rotation: u8) -> AffineMa #[test_case] fn affine(_gba: &mut crate::Gba) { // expect identity matrix - let aff = affine_matrix(1 << 8, 1 << 8, 0); - assert_eq!(aff.p_a, 1 << 8); - assert_eq!(aff.p_d, 1 << 8); + let one: Num<8> = 1.into(); + + 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); }