Import key tests: a snapshot reader gets schema and record back separately
Test-only; compile-checked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e085286126
commit
c750e21c2d
1 changed files with 5 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue