codesamplex

Exemple

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

Cas

Objectif
Validate interval boundaries with inRange strictly requiring minimum to be less than maximum rather than auto-swapping inverted bounds HOW
Paquets
es-toolkit 1.32.0
Environnement
node
Créé
2026-08-16T16:32:39Z

Ce que l'on suppose souvent

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.

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification