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

検証レシート