MCPcopy Create free account
hub / github.com/hashintel/hash / ordering

Function ordering

libs/@local/codec/src/numeric/real.rs:556–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

554
555 #[test]
556 fn ordering() {
557 let value1 = Real::from_natural(10, 0);
558 let value2 = Real::from_natural(5, 0);
559 let value3 = Real::from_natural(10, 0);
560
561 assert!(value1 > value2);
562 assert!(value2 < value1);
563 assert_eq!(value1, value3);
564 assert!(value1 >= value3);
565 assert!(value1 <= value3);
566 }
567
568 #[test]
569 #[cfg(feature = "serde")]

Callers

nothing calls this directly

Calls 1

from_naturalFunction · 0.85

Tested by

no test coverage detected