GameCult.Thing.Contract.Tests: the persisted-catalog entries in NameSetTests move the content hash too
An entry equal to the local one in content hash resolves as Exact without comparing names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
963900cc0d
commit
9405c7a595
1 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ public sealed class NameSetTests
|
|||
SchemaId = local.SchemaId[..^1] + (local.SchemaId[^1] == '0' ? '1' : '0'),
|
||||
SchemaName = local.SchemaName,
|
||||
SchemaVersion = local.SchemaVersion,
|
||||
ContentHash = local.ContentHash,
|
||||
ContentHash = local.ContentHash[..^1] + (local.ContentHash[^1] == '0' ? '1' : '0'),
|
||||
CanonicalSchemaJson = local.CanonicalSchemaJson,
|
||||
Members = local.Members.Select(m => new CultSchemaMemberCatalogEntry
|
||||
{
|
||||
|
|
@ -58,6 +58,7 @@ public sealed class NameSetTests
|
|||
};
|
||||
}
|
||||
|
||||
// A persisted entry equal in id and content hash resolves without comparison, so the entries below move both.
|
||||
// CultCache compares a persisted catalog with the package's names where it resolves a persisted schema id that is not
|
||||
// its own (ResolvePersistedSchema). Reopening a single-file store does not call it: a store whose recorded names were
|
||||
// patched (id and Int64 both) opens and reads at b3bd8dd5, so the comparison is exercised on the entry the store
|
||||
|
|
|
|||
Loading…
Reference in a new issue