From 9e204059eb1875fd21542b855b1a561ece6d5b0a 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:40 +0000 Subject: [PATCH] test: add unit tests for register_audio module Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- stdlib/src/audio.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/stdlib/src/audio.rs b/stdlib/src/audio.rs index fdefcb84..525ccaa8 100644 --- a/stdlib/src/audio.rs +++ b/stdlib/src/audio.rs @@ -19,3 +19,20 @@ impl StdlibRegistry { ); } } + +#[cfg(test)] +mod tests { + use super::*; + use crate::StdlibRegistry; + + #[test] + fn test_register_audio() { + let registry = StdlibRegistry::new(); + let module = registry + .get_module("std.audio") + .expect("Module std.audio should be registered"); + assert_eq!(module.name, "std.audio"); + assert_eq!(module.version, "1.0.0"); + assert_eq!(module.required_capabilities.len(), 0); + } +}