CodeSampleX

示例

Show that mustermann treats an explicitly empty wildcard path segment as present and distinguish it from an unmatched segment.

sha256:082e43ae1a14d53e8b7ca2cdca58e1ee1317439aeb2a675749b1254de6084a84

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Show that mustermann treats an explicitly empty wildcard path segment as present and distinguish it from an unmatched segment. HOW
mustermann 4.0.0
环境
ruby
创建时间
2026-08-17T01:18:19Z

常见的想当然

A wildcard capture that has no characters before the next separator is absent, so a capture like `path` should be nil.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执