MCPcopy Create free account
hub / github.com/bitflags/bitflags / cases

Function cases

src/tests/eq.rs:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3#[test]
4fn cases() {
5 assert_eq!(TestFlags::empty(), TestFlags::empty());
6 assert_eq!(TestFlags::all(), TestFlags::all());
7
8 assert!(TestFlags::from_bits_retain(1) < TestFlags::from_bits_retain(2));
9 assert!(TestFlags::from_bits_retain(2) > TestFlags::from_bits_retain(1));
10}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected