aboutsummaryrefslogtreecommitdiff
path: root/azalea-block/src/lib.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-10-02 14:58:42 -0500
committerGitHub <noreply@github.com>2022-10-02 14:58:42 -0500
commit06068377bd17f95bdafe86ff14bab1d0d852aa53 (patch)
treeed3f15107d69dc0cc8f6794745832b82a1649c80 /azalea-block/src/lib.rs
parent37f9f1c6feda676be30bef31291eaed2a5fc82ce (diff)
downloadazalea-drasl-06068377bd17f95bdafe86ff14bab1d0d852aa53.tar.xz
New example (#24)
the example isn't finished but it's finished enough
Diffstat (limited to 'azalea-block/src/lib.rs')
-rw-r--r--azalea-block/src/lib.rs7
1 files changed, 5 insertions, 2 deletions
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<dyn Block> = Box::<dyn Block>::from(BlockState::Air);
- assert_eq!(box_block.id(), "air");
+ let block: Box<dyn Block> = Box::<dyn Block>::from(BlockState::Air);
+ assert_eq!(block.id(), "air");
+
+ let block: Box<dyn Block> = Box::<dyn Block>::from(BlockState::FloweringAzalea);
+ assert_eq!(block.id(), "flowering_azalea");
}
}