From 4a7bb5fafcb6e2ee29993e39e26a3b1999c76b26 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 4 Nov 2026 23:03:19 +0100 Subject: [PATCH] eureka-state door: a custom message with an expected clause is not passed on Co-Authored-By: Claude Opus 5.5 --- crates/eureka-state/src/door.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/eureka-state/src/door.rs b/crates/eureka-state/src/door.rs index 9557e39..d1f06c5 100644 --- a/crates/eureka-state/src/door.rs +++ b/crates/eureka-state/src/door.rs @@ -210,6 +210,7 @@ mod tests { // A given value that itself says ", expected " is still not echoed past the last one. assert_eq!(schema_words("invalid type: string \"x, expected CANARY\", expected a map"), "wrong type, expected a map"); // A custom message may quote anything; none of it is passed on. + assert_eq!(schema_words("CANARY, expected a slug"), "a value the schema refuses"); assert_eq!(schema_words("CANARY is not a slug"), "a value the schema refuses"); assert_eq!(schema_words("unknown variant `CANARY`"), "a value the schema refuses"); }