codesamplex

サンプル

Validate interval boundaries with inRange strictly requiring minimum to be less than maximum rather than auto-swapping inverted bounds

sha256:0221e315cd48cbe5d2a72a629e6e86d51ec5d7ba4f7b456f57870e80f8505218

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Validate interval boundaries with inRange strictly requiring minimum to be less than maximum rather than auto-swapping inverted bounds HOW
パッケージ
es-toolkit 1.32.0
環境
node
作成日
2026-08-16T16:32:39Z

よくある思い込み

inRange automatically tolerates inverted boundary arguments and single negative upper bounds by swapping them or defaulting the lower bound to zero without throwing an error.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート