更新NbtValue的断言语句为正确的返回结果

This commit is contained in:
shenjack 2024-03-10 00:02:04 +08:00
parent af5b235995
commit cec3b191b9
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,10 @@ pub enum NbtVersion {
BedrockNetVarInt,
}
// pub trait Nbt {
// }
/// Error
#[derive(Debug, Clone, PartialEq)]
pub enum NbtError {

View File

@ -247,7 +247,7 @@ mod nbt {
Some("hello world".to_string()),
vec![("name".to_string(), NbtValue::String("Bananrama".to_string()))],
);
assert_eq!(data, correct_data)
assert_eq!(data, Ok(correct_data))
}
#[test]