mirror of
https://github.com/openharmony/third_party_rust_bitflags.git
synced 2026-07-20 23:46:15 -04:00
Merge pull request #239 from ratijas/rename-u128
Rename i128 file & test to u128
This commit is contained in:
@@ -14,7 +14,7 @@ bitflags! {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_i128_bitflags() {
|
||||
fn test_u128_bitflags() {
|
||||
assert_eq!(Flags128::ABC, Flags128::A | Flags128::B | Flags128::C);
|
||||
assert_eq!(Flags128::A.bits, 0x0000_0000_0000_0000_0000_0000_0000_0001);
|
||||
assert_eq!(Flags128::B.bits, 0x0000_0000_0000_1000_0000_0000_0000_0000);
|
||||
Reference in New Issue
Block a user