refactor: 测试断言改 assert!

This commit is contained in:
2026-08-16 14:04:27 +08:00
parent 885c43e0e4
commit c8f5f76e47
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -2873,6 +2873,6 @@ mod tests {
frame.constructed_this.is_some_and(|v| v.is_object()),
"基类构造路径 constructed_this 应为新对象"
);
assert_eq!(frame.is_derived_constructor, false, "普通函数非 derived 构造器");
assert!(!frame.is_derived_constructor, "普通函数非 derived 构造器");
}
}