From 49ba880af06531f1028a50bc09bb0f827fa6607c Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sun, 21 Jan 2024 22:14:40 +0000 Subject: [PATCH] Removed irrelevant test --- common/src/terrain/block.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/common/src/terrain/block.rs b/common/src/terrain/block.rs index d367effb9a..e04c195396 100644 --- a/common/src/terrain/block.rs +++ b/common/src/terrain/block.rs @@ -686,24 +686,3 @@ impl Block { const _: () = assert!(core::mem::size_of::() == 1); const _: () = assert!(core::mem::size_of::() == 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())), - ); - } - } - } -}