cultcache-rs tests: a depth refusal through the cache names the entry type, not the C# type name

Builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-11 10:15:16 +02:00
commit 94f61a14f6

View file

@ -604,7 +604,9 @@ fn bounds_vectors() {
"refused" => {
refused += 1;
let message = result.expect_err(file);
assert!(message.contains(union), "{file}: {message}");
// The cache path names the entry type in its context; the union names itself.
let names = if union == "UnionSurface" { UnionSurface::TYPE } else { union };
assert!(message.contains(names), "{file}: {message}");
let class = match detail {
"key-out-of-range" => "outside Int32",
"key-not-integer" => "non-integer",