From 06068377bd17f95bdafe86ff14bab1d0d852aa53 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 2 Oct 2022 14:58:42 -0500 Subject: New example (#24) the example isn't finished but it's finished enough --- azalea-block/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'azalea-block/src') diff --git a/azalea-block/src/lib.rs b/azalea-block/src/lib.rs index 969288f5..cc7ddf73 100644 --- a/azalea-block/src/lib.rs +++ b/azalea-block/src/lib.rs @@ -66,7 +66,10 @@ mod tests { #[test] fn test_from_blockstate() { - let box_block: Box = Box::::from(BlockState::Air); - assert_eq!(box_block.id(), "air"); + let block: Box = Box::::from(BlockState::Air); + assert_eq!(block.id(), "air"); + + let block: Box = Box::::from(BlockState::FloweringAzalea); + assert_eq!(block.id(), "flowering_azalea"); } } -- cgit v1.2.3