zigzag zagzig

This commit is contained in:
zypeh 2022-08-25 21:43:22 +08:00 committed by Lucas
parent b81986c44c
commit aeae9aa51e
1 changed files with 7 additions and 0 deletions

View File

@ -15,4 +15,11 @@ mod test {
let converted_i = to_isize(u); let converted_i = to_isize(u);
converted_i == i converted_i == i
} }
#[quickcheck]
fn zagzig(u: usize) -> bool {
let i = to_isize(u);
let converted_u = to_usize(i);
converted_u == u
}
} }