diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-10-02 14:58:42 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-02 14:58:42 -0500 |
| commit | 06068377bd17f95bdafe86ff14bab1d0d852aa53 (patch) | |
| tree | ed3f15107d69dc0cc8f6794745832b82a1649c80 /azalea-block/src | |
| parent | 37f9f1c6feda676be30bef31291eaed2a5fc82ce (diff) | |
| download | azalea-drasl-06068377bd17f95bdafe86ff14bab1d0d852aa53.tar.xz | |
New example (#24)
the example isn't finished but it's finished enough
Diffstat (limited to 'azalea-block/src')
| -rw-r--r-- | azalea-block/src/lib.rs | 7 |
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"); } } |
