Skip to content

Parameters in step macro instead of REGEX_PARAM #112

@paoloambrosio

Description

@paoloambrosio

Transform...

GIVEN("^I have entered (\\d+) into the calculator$") {
    REGEX_PARAM(double, n);
    ScenarioScope<CalcCtx> context;

    context->calc.push(n);
}

...into

GIVEN("^I have entered (\\d+) into the calculator$", double n) {
    ScenarioScope<CalcCtx> context;

    context->calc.push(n);
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions