Add test case for u128 panic (#5601)
* u128 panic * Add test case for u128 memory out of bounds error * Fix check
This commit is contained in:
@ -8,6 +8,10 @@ pub fn work(x: u128, y: u128) -> u128 {
|
||||
x + y
|
||||
}
|
||||
|
||||
pub fn two_thirds(x: u128) -> u128 {
|
||||
2 * x / 3
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
extern crate std;
|
||||
|
Reference in New Issue
Block a user