MCPcopy Create free account
hub / github.com/chc4/lineiform / timestamp_cmp

Function timestamp_cmp

tangle/src/time.rs:67–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66 #[test]
67 fn timestamp_cmp() {
68 assert!(Timestamp::new() == Timestamp::new());
69 assert!(Timestamp::new() <= Timestamp::new());
70 assert!(Timestamp::new() >= Timestamp::new());
71 assert!(Timestamp::new().increment() > Timestamp::new());
72 assert!(Timestamp::new().push() > Timestamp::new());
73 assert!(Timestamp::new().push() < Timestamp::new().increment());
74 assert!(Timestamp::new().increment().push() > Timestamp::new().push());
75 assert!(Timestamp::new().increment().push() > Timestamp::new().increment());
76 }
77}
78
79impl StepLite for Timestamp {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected