feat: 添加标准测试

This commit is contained in:
0264408
2026-06-16 16:56:17 +08:00
parent a76cd79be2
commit 983a7d8b34
4 changed files with 1751 additions and 1 deletions
+2
View File
@@ -25,4 +25,6 @@ pub fn register_all(env: &Rc<RefCell<Env>>) {
let mut os = HashMap::new();
os.insert("clock".into(), Value::NativeFunction(os::clock));
e.define("os".into(), Value::Object(Rc::new(RefCell::new(os))));
// clock can also be used as a global function for convenience
e.define("clock".into(), Value::NativeFunction(os::clock));
}