From 56cd1e9943c978f3a4721e7f4c66e7d06ac90f51 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 27 Oct 2026 18:09:56 +0000 Subject: [PATCH 1/4] test: add unit test for register_svg in stdlib Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- stdlib/src/svg.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/stdlib/src/svg.rs b/stdlib/src/svg.rs index 89fa46ba..aeb2ccc3 100644 --- a/stdlib/src/svg.rs +++ b/stdlib/src/svg.rs @@ -19,3 +19,21 @@ impl StdlibRegistry { ); } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_register_svg() { + let mut registry = StdlibRegistry::default(); + registry.register_svg(); + + assert!(registry.has_module("std.svg")); + let module = registry.get_module("std.svg").unwrap(); + assert_eq!(module.name, "std.svg"); + assert_eq!(module.version, "1.0.0"); + assert!(module.exports.is_empty()); + assert!(module.required_capabilities.is_empty()); + } +} From 3a27d63875a1602aba92a9e93259e4c950692965 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 27 Oct 2026 18:11:58 +0000 Subject: [PATCH 2/4] test: add unit test for register_svg in stdlib Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> From 8187284fab2cfb1e9ecea9176de0a19868ec17f6 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 27 Oct 2026 21:06:19 +0000 Subject: [PATCH 3/4] test: add unit test for register_svg in stdlib Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> From e961d706478a25e393a0777f165788558913495f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 27 Oct 2026 21:15:28 +0000 Subject: [PATCH 4/4] test: add unit test for register_svg in stdlib Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com>