From bb6742327bebcc11243a4b099a635613bfc86cff 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:19:18 +0000 Subject: [PATCH] Add tests for std.pdf module registration Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- stdlib/src/pdf.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/stdlib/src/pdf.rs b/stdlib/src/pdf.rs index 1b9fe676..c2af223e 100644 --- a/stdlib/src/pdf.rs +++ b/stdlib/src/pdf.rs @@ -19,3 +19,21 @@ impl StdlibRegistry { ); } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_register_pdf() { + let mut registry = StdlibRegistry::default(); + registry.register_pdf(); + + assert!(registry.has_module("std.pdf")); + let module = registry.get_module("std.pdf").unwrap(); + assert_eq!(module.name, "std.pdf"); + assert_eq!(module.version, "1.0.0"); + assert!(module.exports.is_empty()); + assert!(module.required_capabilities.is_empty()); + } +}