eureka-state door: a custom message with an expected clause is not passed on
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
27ab1fcbcf
commit
4a7bb5fafc
1 changed files with 1 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue