Skip wrapping arithmetic tests on emscripten for 128 bit integers

This commit is contained in:
Ilija Tovilo 2019-08-30 14:10:46 +02:00 committed by GitHub
parent c71004cd21
commit 55800ce899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,12 +64,14 @@ fn main() {
wrapping_test!(i16, std::i16::MIN, std::i16::MAX);
wrapping_test!(i32, std::i32::MIN, std::i32::MAX);
wrapping_test!(i64, std::i64::MIN, std::i64::MAX);
#[cfg(not(target_os = "emscripten"))]
wrapping_test!(i128, std::i128::MIN, std::i128::MAX);
wrapping_test!(isize, std::isize::MIN, std::isize::MAX);
wrapping_test!(u8, std::u8::MIN, std::u8::MAX);
wrapping_test!(u16, std::u16::MIN, std::u16::MAX);
wrapping_test!(u32, std::u32::MIN, std::u32::MAX);
wrapping_test!(u64, std::u64::MIN, std::u64::MAX);
#[cfg(not(target_os = "emscripten"))]
wrapping_test!(u128, std::u128::MIN, std::u128::MAX);
wrapping_test!(usize, std::usize::MIN, std::usize::MAX);
}