Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
MrlnHi committed Mar 5, 2023
1 parent 23a8b03 commit c901ec4
Showing 1 changed file with 35 additions and 33 deletions.
68 changes: 35 additions & 33 deletions crates/valence_schem/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,41 +811,43 @@ mod test {
assert_eq!(
nbt,
compound! {
"Version" => 3,
"DataVersion" => 3218,
"Metadata" => compound! {
"A" => 123,
},
"Width" => 3i16,
"Height" => 3i16,
"Length" => 2i16,
"Offset" => vec![-1, -2, -1],
"Blocks" => compound! {
"Data" => vec![0i8, 1, 0, 0, 0, 0, 2, 3, 3, 0, 4, 0, 0, 5, 0, 0, 0, 0],
"Palette" => compound! {
"air" => 0,
"glowstone" => 1,
"lapis_block" => 2,
"stone" => 3,
"andesite_wall[east=none, north=low, south=none, up=true, waterlogged=false, west=none]" => 4,
"oak_sign[rotation=0, waterlogged=false]" => 5,
"Schematic" => compound! {
"Version" => 3,
"DataVersion" => 3218,
"Metadata" => compound! {
"A" => 123,
},
"BlockEntities" => Value::List(List::Compound(vec![
compound! {
"Data" => compound!{
"Text1" => "abc".into_text(),
},
"Id" => "sign",
"Pos" => vec![1, 2, 0],
"Width" => 3i16,
"Height" => 3i16,
"Length" => 2i16,
"Offset" => vec![-1, -2, -1],
"Blocks" => compound! {
"Data" => vec![0i8, 1, 0, 0, 0, 0, 2, 3, 3, 0, 4, 0, 0, 5, 0, 0, 0, 0],
"Palette" => compound! {
"air" => 0,
"glowstone" => 1,
"lapis_block" => 2,
"stone" => 3,
"andesite_wall[east=none, north=low, south=none, up=true, waterlogged=false, west=none]" => 4,
"oak_sign[rotation=0, waterlogged=false]" => 5,
},
]))
},
"Biomes" => compound! {
"Data" => vec![0i8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"Palette" => compound! {
"minecraft:plains" => 0,
}
},
"BlockEntities" => Value::List(List::Compound(vec![
compound! {
"Data" => compound!{
"Text1" => "abc".into_text(),
},
"Id" => "sign",
"Pos" => vec![1, 2, 0],
},
]))
},
"Biomes" => compound! {
"Data" => vec![0i8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"Palette" => compound! {
"minecraft:plains" => 0,
}
},
}
}
);
}
Expand Down

0 comments on commit c901ec4

Please sign in to comment.