Skip to content

Commit

Permalink
test: fix config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed Apr 1, 2024
1 parent a9b35c5 commit 814bb94
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/config/generation_bits_too_big.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0080]: evaluation of `<InvalidConfig as idr_ebr::config::ConfigPrivate>::
--> src/config.rs
|
| assert!(Self::GENERATION_BITS <= 32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: Self::GENERATION_BITS <= 32', $DIR/src/config.rs:81:9
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: Self::GENERATION_BITS <= 32', $DIR/src/config.rs:83:9
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
2 changes: 1 addition & 1 deletion tests/config/ips_not_power_of_two.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0080]: evaluation of `<InvalidConfig as idr_ebr::config::ConfigPrivate>::
--> src/config.rs
|
| assert!(Self::INITIAL_PAGE_SIZE.is_power_of_two());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: Self::INITIAL_PAGE_SIZE.is_power_of_two()', $DIR/src/config.rs:77:9
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: Self::INITIAL_PAGE_SIZE.is_power_of_two()', $DIR/src/config.rs:79:9
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
2 changes: 1 addition & 1 deletion tests/config/max_pages_zero.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0080]: evaluation of `<InvalidConfig as idr_ebr::config::ConfigPrivate>::
--> src/config.rs
|
| assert!(Self::MAX_PAGES > 0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: Self::MAX_PAGES > 0', $DIR/src/config.rs:78:9
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: Self::MAX_PAGES > 0', $DIR/src/config.rs:80:9
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
2 changes: 1 addition & 1 deletion tests/config/reserved_bits_too_big.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0080]: evaluation of `<InvalidConfig as idr_ebr::config::ConfigPrivate>::
--> src/config.rs
|
| assert!(Self::RESERVED_BITS <= 32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: Self::RESERVED_BITS <= 32', $DIR/src/config.rs:79:9
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: Self::RESERVED_BITS <= 32', $DIR/src/config.rs:81:9
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
2 changes: 1 addition & 1 deletion tests/config/slot_bits_too_big.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0080]: evaluation of `<InvalidConfig as idr_ebr::config::ConfigPrivate>::
--> src/config.rs
|
| assert!(Self::SLOT_BITS <= 32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: Self::SLOT_BITS <= 32', $DIR/src/config.rs:80:9
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: Self::SLOT_BITS <= 32', $DIR/src/config.rs:82:9
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)

Expand Down
2 changes: 1 addition & 1 deletion tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn it_works() {
if value % 2 == 0 {
assert!(actual.is_none());
} else {
assert_eq!(&*idr.get(*key).unwrap(), value);
assert_eq!(actual.unwrap(), *value);
}
}
}

0 comments on commit 814bb94

Please sign in to comment.