From 9bb41bdb3f3f8ae5d27aa6712017e7159a98e116 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 08:18:33 +0000 Subject: [PATCH 1/2] Add unit test for word.rs module registration Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- stdlib/src/word.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/stdlib/src/word.rs b/stdlib/src/word.rs index a19e9528..8d8a422a 100644 --- a/stdlib/src/word.rs +++ b/stdlib/src/word.rs @@ -19,3 +19,20 @@ impl StdlibRegistry { ); } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_register_word() { + let mut registry = StdlibRegistry::new(); + registry.register_word(); + + let module = registry.get_module("std.word").expect("Module std.word should be registered"); + assert_eq!(module.name, "std.word"); + assert_eq!(module.version, "1.0.0"); + assert!(module.exports.is_empty()); + assert!(module.required_capabilities.is_empty()); + } +} From e4dfcf1b995d890ad5528caab5d63c98b677ba8a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 08:29:07 +0000 Subject: [PATCH 2/2] Fix cargo fmt formatting in word.rs test module Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- stdlib/src/word.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/src/word.rs b/stdlib/src/word.rs index 8d8a422a..5e04745e 100644 --- a/stdlib/src/word.rs +++ b/stdlib/src/word.rs @@ -29,7 +29,9 @@ mod tests { let mut registry = StdlibRegistry::new(); registry.register_word(); - let module = registry.get_module("std.word").expect("Module std.word should be registered"); + let module = registry + .get_module("std.word") + .expect("Module std.word should be registered"); assert_eq!(module.name, "std.word"); assert_eq!(module.version, "1.0.0"); assert!(module.exports.is_empty());