mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 08:53:29 +00:00
OSDK check and clippy with cfg(ktest)
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
be3492d7f0
commit
d76c7a5b1e
@ -134,8 +134,8 @@ mod test {
|
||||
#[ktest]
|
||||
fn calculation() {
|
||||
let coeff = Coeff::new(23456, 56789, 1_000_000_000);
|
||||
assert!(coeff * 0 as u64 == 0);
|
||||
assert!(coeff * 100 as u64 == 100 * 23456 / 56789);
|
||||
assert!(coeff * 1_000_000_000 as u64 == 1_000_000_000 * 23456 / 56789);
|
||||
assert!(coeff * 0_u64 == 0);
|
||||
assert!(coeff * 100_u64 == 100 * 23456 / 56789);
|
||||
assert!(coeff * 1_000_000_000_u64 == 1_000_000_000 * 23456 / 56789);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user