Skip to content

Commit 2da4e33

Browse files
committed
add panic tests
1 parent 86a3d64 commit 2da4e33

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

builtin/int64_test.mbt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7472,3 +7472,27 @@ test "grouped test for specific patterns" {
74727472
// Test for all bits set except the most significant bit
74737473
inspect(UInt64::reinterpret_as_double(0x7FFFFFFFFFFFFFFFUL), content="NaN")
74747474
}
7475+
7476+
///|
7477+
test "panic 1L / 0L" {
7478+
let _ = 1L / 0L
7479+
7480+
}
7481+
7482+
///|
7483+
test "panic 1L % 0L" {
7484+
let _ = 1L % 0L
7485+
7486+
}
7487+
7488+
///|
7489+
test "panic 1UL / 0UL" {
7490+
let _ = 1UL / 0UL
7491+
7492+
}
7493+
7494+
///|
7495+
test "panic 1UL % 0UL" {
7496+
let _ = 1UL % 0UL
7497+
7498+
}

0 commit comments

Comments
 (0)