()
| 920 | |
| 921 | #[test] |
| 922 | fn from_u128_nz() { |
| 923 | assert!(Choice::from_u128_nz(0).eq(Choice::FALSE).to_bool()); |
| 924 | assert!(Choice::from_u128_nz(1).eq(Choice::TRUE).to_bool()); |
| 925 | assert!(Choice::from_u128_nz(2).eq(Choice::TRUE).to_bool()); |
| 926 | } |
| 927 | |
| 928 | #[test] |
| 929 | fn select_i64() { |