Skip to content

Commit 70847bc

Browse files
vvillait88claude
andcommitted
test(discovery): lock version: 0 → "0" parity behavior
Mirror node-commerce parity-lock test. End-to-end review flagged version: 0 as potential parity drift; verified both pass 0 through unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9aa8033 commit 70847bc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_skill_md.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ def test_version_emitted_as_quoted_string(self) -> None:
4848
out2 = build_skill_md(cfg)
4949
assert ' version: "2.0.1"' in out2
5050

51+
def test_version_zero_passes_through(self) -> None:
52+
"""Parity lock: Node uses ?? (nullish coalescing); Python uses str(); both pass 0 through."""
53+
cfg = _base()
54+
cfg.version = 0
55+
out = build_skill_md(cfg)
56+
assert ' version: "0"' in out
57+
5158
def test_quotes_description_with_colons(self) -> None:
5259
cfg = _base()
5360
cfg.description = "Use when: buying premium wine"

0 commit comments

Comments
 (0)