From 9cd1c1c4485c30356fbb138370a0ecbc6db77d4d Mon Sep 17 00:00:00 2001 From: Hare Date: Fri, 14 Aug 2026 00:40:39 +0900 Subject: [PATCH] runtime: update Decodal import loader test --- crates/worker-runtime/src/profile_archive.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/worker-runtime/src/profile_archive.rs b/crates/worker-runtime/src/profile_archive.rs index 2bf5f813..b8362347 100644 --- a/crates/worker-runtime/src/profile_archive.rs +++ b/crates/worker-runtime/src/profile_archive.rs @@ -742,7 +742,12 @@ mod tests { let loaded = loader .load(Some("profiles/main.dcdl"), "./shared.dcdl") .unwrap(); - assert_eq!(loaded.key, "profiles/shared.dcdl"); + match loaded { + LoadedImport::Source(source) => { + assert_eq!(source.key, "profiles/shared.dcdl"); + } + LoadedImport::Value(_) => panic!("expected source import"), + } } #[test]