From ac824b78bb235e1f01597395e5130453bd852675 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:10:28 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=A7=AA=20add=20unit=20and=20integrati?= =?UTF-8?q?on=20tests=20for=20register=5Fdocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- stdlib/src/docs.rs | 18 ++++++++++++++++++ stdlib/tests/stdlib_tests.rs | 12 ++++++++++++ 2 files changed, 30 insertions(+) diff --git a/stdlib/src/docs.rs b/stdlib/src/docs.rs index 1ab97221..bb5bd729 100644 --- a/stdlib/src/docs.rs +++ b/stdlib/src/docs.rs @@ -19,3 +19,21 @@ impl StdlibRegistry { ); } } + +#[cfg(test)] +mod tests { + use super::*; + use crate::StdlibRegistry; + + #[test] + fn test_register_docs() { + let registry = StdlibRegistry::new(); + let module = registry + .get_module("std.docs") + .expect("std.docs module should be registered"); + + assert_eq!(module.name, "std.docs"); + assert_eq!(module.version, "1.0.0"); + assert!(module.required_capabilities.is_empty()); + } +} diff --git a/stdlib/tests/stdlib_tests.rs b/stdlib/tests/stdlib_tests.rs index 05c13a8c..be2034df 100644 --- a/stdlib/tests/stdlib_tests.rs +++ b/stdlib/tests/stdlib_tests.rs @@ -1331,3 +1331,15 @@ fn test_uuid_module() { assert!(!uuid_str.is_empty()); assert!(uuid_str.contains("-")); } + +#[test] +fn test_docs_module() { + let registry = StdlibRegistry::new(); + let docs = registry + .get_module("std.docs") + .expect("std.docs module should be registered"); + + assert_eq!(docs.name, "std.docs"); + assert_eq!(docs.version, "1.0.0"); + assert!(docs.required_capabilities.is_empty()); +} From de60481a884ff7338862c3f7c79416a5f72c46f3 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:31:18 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A7=AA=20add=20unit=20and=20integrati?= =?UTF-8?q?on=20tests=20for=20register=5Fdocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> From f6998c00666cd50205a5dcbbe388c1ab845a7109 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 19:15:11 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A7=AA=20add=20unit=20and=20integrati?= =?UTF-8?q?on=20tests=20for=20register=5Fdocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- examples/threads/threads.txs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/threads/threads.txs b/examples/threads/threads.txs index 7396bb40..96d5b7db 100644 --- a/examples/threads/threads.txs +++ b/examples/threads/threads.txs @@ -6,12 +6,12 @@ spawn_fn = thread["spawn"] join_fn = thread["join"] do task_a() - time.sleep(100) + time.sleep(200) say "Task A completed on worker thread." end do task_b() - time.sleep(50) + time.sleep(20) say "Task B completed on worker thread." end