From 94f61a14f69c4e005a67c6e0d7a831b468ca71e4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 11 Oct 2026 10:15:16 +0200 Subject: [PATCH] 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 --- packages/cultcache-rs/tests/union_parity.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cultcache-rs/tests/union_parity.rs b/packages/cultcache-rs/tests/union_parity.rs index bb871218..3eb7ae02 100644 --- a/packages/cultcache-rs/tests/union_parity.rs +++ b/packages/cultcache-rs/tests/union_parity.rs @@ -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",