We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcdca45 commit 6a164eeCopy full SHA for 6a164ee
src/can/id.rs
@@ -194,7 +194,12 @@ mod tests {
194
195
#[test]
196
fn cmp_id() {
197
- assert!(Id::Standard(StandardId::MAX) < Id::Standard(StandardId::ZERO));
198
- assert!(Id::Extended(ExtendedId::MAX) < Id::Extended(ExtendedId::ZERO));
+ assert!(StandardId::ZERO < StandardId::MAX);
+ assert!(ExtendedId::ZERO < ExtendedId::MAX);
199
+
200
+ assert!(Id::Standard(StandardId::ZERO) < Id::Extended(ExtendedId::ZERO));
201
+ assert!(Id::Extended(ExtendedId::ZERO) < Id::Extended(ExtendedId::MAX));
202
+ assert!(Id::Extended(ExtendedId((1 << 11) - 1)) < Id::Standard(StandardId(1)));
203
+ assert!(Id::Standard(StandardId(1)) < Id::Extended(ExtendedId::MAX));
204
}
205
0 commit comments