go-bdd / gobdd

BDD framework
https://go-bdd.github.io/gobdd/
MIT License
115 stars 19 forks source link

cannot have multiple parameter type on the same line #147

Closed vlalanne closed 11 months ago

vlalanne commented 11 months ago

Describe the bug When a step contains both {text} and {int} or {word}, steps are not matched To Reproduce Given steps:

    suite.AddStep(`the result should equal text {text}`, checkt)
    suite.AddStep(`I concat word {word} and text {text}`, concat)
    suite.AddStep(`I format text {text} with int {int}`,  format)

Try running scenarios:

  Scenario: concat a word and a text with double quotes
    When I concat word Hello and text " World!"
    Then the result should equal text "Hello World!"
  Scenario: format text
    When I format text "counter %d" with int -12
    Then the result should equal text "counter -12"

Expected behavior Test passes

Additional context Add any other context about the problem here.

github-actions[bot] commented 11 months ago

Thanks for creating your first issue! We are thankful for your help