()
| 781 | |
| 782 | #[test] |
| 783 | fn from_u16_nz() { |
| 784 | assert!(Choice::from_u16_nz(0).eq(Choice::FALSE).to_bool()); |
| 785 | assert!(Choice::from_u16_nz(1).eq(Choice::TRUE).to_bool()); |
| 786 | assert!(Choice::from_u16_nz(2).eq(Choice::TRUE).to_bool()); |
| 787 | } |
| 788 | |
| 789 | #[test] |
| 790 | fn from_u32_eq() { |