Skip to content

Commit 36dfdb7

Browse files
committed
test: use clearer synthetic values for hyphen edge cases
STEP-2/RUN and MULTI-WORD-SEGMENT read unambiguously as synthetic test data, instead of awkwardly extending the real agent-context extension's command name with made-up suffixes.
1 parent 919714d commit 36dfdb7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/integrations/test_base.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,16 +436,16 @@ def test_hyphen_in_multiple_segments(self):
436436
assert result == "/speckit.code-review.request-changes"
437437

438438
def test_hyphen_adjacent_to_digit(self):
439-
"""A hyphen directly next to a digit (e.g. a version suffix) round-trips."""
440-
text = "__SPECKIT_COMMAND_AGENT-CONTEXT_UPDATE-V2__"
439+
"""A hyphen directly next to a digit round-trips."""
440+
text = "__SPECKIT_COMMAND_STEP-2_RUN__"
441441
result = IntegrationBase.resolve_command_refs(text, ".")
442-
assert result == "/speckit.agent-context.update-v2"
442+
assert result == "/speckit.step-2.run"
443443

444444
def test_multiple_hyphens_within_one_segment(self):
445-
"""A segment with more than one hyphen (a multi-word compound) round-trips."""
446-
text = "__SPECKIT_COMMAND_AGENT-CONTEXT_UPDATE-WITH-EXAMPLE__"
445+
"""A segment with more than one hyphen round-trips."""
446+
text = "__SPECKIT_COMMAND_MULTI-WORD-SEGMENT__"
447447
result = IntegrationBase.resolve_command_refs(text, ".")
448-
assert result == "/speckit.agent-context.update-with-example"
448+
assert result == "/speckit.multi-word-segment"
449449

450450
def test_no_limit_on_segment_count(self):
451451
"""The token isn't limited to two dotted segments; any number works."""

0 commit comments

Comments
 (0)