aboutsummaryrefslogtreecommitdiff
path: root/azalea-nbt/tests
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2023-03-22 19:52:19 +0000
committermat <github@matdoes.dev>2023-03-22 19:52:19 +0000
commit228ee4a2f0f94975fc233946e0c4d258f87fbcf4 (patch)
treeff9505d27ce7dda21516ae201078d0b8116a593b /azalea-nbt/tests
parent75e62c913640f4e324912309a05de686cd1d4f7f (diff)
downloadazalea-drasl-228ee4a2f0f94975fc233946e0c4d258f87fbcf4.tar.xz
optimize nbt lists
Diffstat (limited to 'azalea-nbt/tests')
-rwxr-xr-xazalea-nbt/tests/tests.rs38
1 files changed, 19 insertions, 19 deletions
diff --git a/azalea-nbt/tests/tests.rs b/azalea-nbt/tests/tests.rs
index c0fe520d..62852578 100755
--- a/azalea-nbt/tests/tests.rs
+++ b/azalea-nbt/tests/tests.rs
@@ -1,5 +1,5 @@
use ahash::AHashMap;
-use azalea_nbt::Tag;
+use azalea_nbt::{NbtList, Tag};
use std::io::Cursor;
#[test]
@@ -53,24 +53,24 @@ fn test_bigtest() {
fn test_stringtest() {
let correct_tag = Tag::Compound(AHashMap::from_iter(vec![(
"😃".into(),
- Tag::List(vec![
- Tag::String("asdfkghasfjgihsdfogjsndfg".into()),
- Tag::String("jnabsfdgihsabguiqwrntgretqwejirhbiqw".into()),
- Tag::String("asd".into()),
- Tag::String("wqierjgt7wqy8u4rtbwreithwretiwerutbwenryq8uwervqwer9iuqwbrgyuqrbtwierotugqewrtqwropethert".into()),
- Tag::String("asdf".into()),
- Tag::String("alsdkjiqwoe".into()),
- Tag::String("lmqi9hyqd".into()),
- Tag::String("qwertyuiop".into()),
- Tag::String("asdfghjkl".into()),
- Tag::String("zxcvbnm".into()),
- Tag::String(" ".into()),
- Tag::String("words words words words words words".into()),
- Tag::String("aaaaaaaaaaaaaaaaaaaa".into()),
- Tag::String("♥".into()),
- Tag::String("a\nb\n\n\nc\r\rd".into()),
- Tag::String("😁".into()),
- ])
+ Tag::List(NbtList::String(vec![
+ "asdfkghasfjgihsdfogjsndfg".into(),
+ "jnabsfdgihsabguiqwrntgretqwejirhbiqw".into(),
+ "asd".into(),
+ "wqierjgt7wqy8u4rtbwreithwretiwerutbwenryq8uwervqwer9iuqwbrgyuqrbtwierotugqewrtqwropethert".into(),
+ "asdf".into(),
+ "alsdkjiqwoe".into(),
+ "lmqi9hyqd".into(),
+ "qwertyuiop".into(),
+ "asdfghjkl".into(),
+ "zxcvbnm".into(),
+ " ".into(),
+ "words words words words words words".into(),
+ "aaaaaaaaaaaaaaaaaaaa".into(),
+ "♥".into(),
+ "a\nb\n\n\nc\r\rd".into(),
+ "😁".into(),
+ ]))
)]));
let original = include_bytes!("stringtest.nbt").to_vec();