Merge pull request #136 from corwinkuiper/num-macro-test-fix

actually test base B in test base
This commit is contained in:
Corwin 2021-12-04 13:58:47 +00:00 committed by GitHub
commit f5ae6ac579
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -327,13 +327,15 @@ fn test_macro_conversion(_gba: &mut super::Gba) {
}
fn test_base<const B: usize>() {
test_positive::<i32, 8>();
test_positive::<i16, 8>();
test_positive::<u32, 8>();
test_positive::<u16, 8>();
test_positive::<i32, B>();
test_positive::<u32, B>();
test_negative::<i32, B>();
test_negative::<i32, 8>();
test_negative::<i16, 8>();
if B < 16 {
test_positive::<u16, B>();
test_positive::<i16, B>();
test_negative::<i16, B>();
}
}
// some nice powers of two
test_base::<8>();