修正资源 kind 绑定测试断言
按 ts-rs 生成的单引号联合成员校验绑定内容。
This commit is contained in:
@@ -659,12 +659,12 @@ mod tests {
|
||||
))
|
||||
.expect("generated GameCreationAppAssetKind binding exists");
|
||||
for value in [
|
||||
"\"image\"",
|
||||
"\"audio\"",
|
||||
"\"sound-effect\"",
|
||||
"\"background-music\"",
|
||||
"\"font\"",
|
||||
"\"unknown\"",
|
||||
"'image'",
|
||||
"'audio'",
|
||||
"'sound-effect'",
|
||||
"'background-music'",
|
||||
"'font'",
|
||||
"'unknown'",
|
||||
] {
|
||||
assert!(
|
||||
generated.contains(value),
|
||||
|
||||
Reference in New Issue
Block a user