MCPcopy Create free account
hub / github.com/RustCrypto/utils / from_u128_nz

Function from_u128_nz

ctutils/src/choice.rs:922–926  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers 1

from_u128_eqMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected