From c750e21c2d6af161df4536f1a7d0f71e17aa1daf Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 17:46:46 +0200 Subject: [PATCH] Import key tests: a snapshot reader gets schema and record back separately Test-only; compile-checked. Co-Authored-By: Claude Opus 5.5 --- crates/ghostlight/src/import_key_tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ghostlight/src/import_key_tests.rs b/crates/ghostlight/src/import_key_tests.rs index 9fe522a..fa3ca05 100644 --- a/crates/ghostlight/src/import_key_tests.rs +++ b/crates/ghostlight/src/import_key_tests.rs @@ -541,5 +541,9 @@ fn a_keyed_world_reopens_with_its_keys_and_digests() { let reopened = WorldKernel::open(dir.path().join("world.cc"), world_id).unwrap(); let again = reopened.snapshot().unwrap(); assert_eq!(again.state_digest, snapshot.state_digest); - assert_eq!(keys_in(&reopened), vec![alpha()]); + let keys = keys_in(&reopened); + assert_eq!(keys, vec![alpha()]); + // A reader of the snapshot gets both parts back, separately. + assert_eq!(keys[0].schema(), "aetheria.ship"); + assert_eq!(keys[0].record(), "Alpha"); }