mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Removed irrelevant test
This commit is contained in:
parent
d836461f8d
commit
49ba880af0
@ -686,24 +686,3 @@ impl Block {
|
||||
|
||||
const _: () = assert!(core::mem::size_of::<BlockKind>() == 1);
|
||||
const _: () = assert!(core::mem::size_of::<Block>() == 4);
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use strum::IntoEnumIterator;
|
||||
|
||||
#[test]
|
||||
fn convert_u32() {
|
||||
for bk in BlockKind::iter() {
|
||||
let block = Block::from_raw(bk, [165, 90, 204]); // Pretty unique bit patterns
|
||||
if bk.is_filled() {
|
||||
assert_eq!(Block::from_u32(block.to_u32()), Some(block));
|
||||
} else {
|
||||
assert_eq!(
|
||||
Block::from_u32(block.to_u32()),
|
||||
Some(Block::new(bk, Rgb::zero())),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user