添加测试功能

This commit is contained in:
shenjack 2024-03-11 01:35:28 +08:00
parent 90ab2135ed
commit 04b4cf3047
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ serde = { version = "1.0", features = ["derive"], optional = true }
[features] [features]
default = [] default = []
serde = ["dep:serde"] serde = ["dep:serde"]
test = []
# test dep # test dep
[dev-dependencies] [dev-dependencies]

View File

@ -515,6 +515,7 @@ mod nbt {
} }
#[test] #[test]
#[cfg(feature = "test")]
fn file_sys_test() { fn file_sys_test() {
// 测试所有能直接找到的 .nbt 文件 // 测试所有能直接找到的 .nbt 文件
// es -r .*\.nbt // es -r .*\.nbt