MCPcopy Create free account
hub / github.com/argumentcomputer/ix / lt_weak_short_circuits

Function lt_weak_short_circuits

crates/common/src/strong_ordering.rs:131–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129
130 #[test]
131 fn lt_weak_short_circuits() {
132 let result = SOrd::lt(false).compare(SOrd::gt(true));
133 assert_eq!(result.ordering, Ordering::Less);
134 assert!(!result.strong);
135 }
136
137 #[test]
138 fn try_compare_eq_strong_calls_closure() {

Callers

nothing calls this directly

Calls 1

compareMethod · 0.80

Tested by

no test coverage detected