Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
16
third-party/vendor/minimal-lexical/tests/mask_tests.rs
vendored
Normal file
16
third-party/vendor/minimal-lexical/tests/mask_tests.rs
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
use minimal_lexical::mask;
|
||||
|
||||
#[test]
|
||||
fn lower_n_mask_test() {
|
||||
assert_eq!(mask::lower_n_mask(2), 0b11);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn lower_n_halfway_test() {
|
||||
assert_eq!(mask::lower_n_halfway(2), 0b10);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn nth_bit_test() {
|
||||
assert_eq!(mask::nth_bit(2), 0b100);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue