From 48b2a37aa09f0302b40d0678cdde2703f919ed18 Mon Sep 17 00:00:00 2001 From: Charles Johnson <32775248+ChemicalXandco@users.noreply.github.com> Date: Thu, 9 Feb 2023 17:18:56 +0000 Subject: derive `Debug` for `BlockState` (#64) * derive `Debug` for `BlockState` * change default Debug for BlockState --------- Co-authored-by: Ubuntu --- azalea-block/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'azalea-block/src') diff --git a/azalea-block/src/lib.rs b/azalea-block/src/lib.rs index 6d45fbf4..4a35be00 100755 --- a/azalea-block/src/lib.rs +++ b/azalea-block/src/lib.rs @@ -74,4 +74,13 @@ mod tests { let block: Box = Box::::from(BlockState::FloweringAzalea); assert_eq!(block.id(), "flowering_azalea"); } + + #[cfg(not(feature = "full-debug"))] + #[test] + fn test_debug_blockstate() { + assert_eq!( + format!("{:?}", BlockState::FloweringAzalea), + "BlockState (flowering_azalea)" + ); + } } -- cgit v1.2.3