From 6edb5a8b2f20953271b8bce46de07aa304e58097 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 08:00:52 +0000 Subject: [PATCH] Add test for ScriptMutex::new Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- stdlib/src/sync.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/stdlib/src/sync.rs b/stdlib/src/sync.rs index 5336bea9..bdb50b9e 100644 --- a/stdlib/src/sync.rs +++ b/stdlib/src/sync.rs @@ -114,3 +114,15 @@ impl StdlibRegistry { ); } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_script_mutex_new() { + let mutex = ScriptMutex::new(); + let guard = mutex.locked.lock().unwrap(); + assert_eq!(*guard, false); + } +}