Skip to content

Commit

Permalink
removed const from context
Browse files Browse the repository at this point in the history
  • Loading branch information
ThoSe1990 committed Nov 29, 2024
1 parent 432907e commit ac407bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/step_definition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ WHEN(custom_par_when, "this is {pair of integers}")
std::pair<int, int> p = CUKE_ARG(1);
std::cout << "Pair initialized with CUKE_ARG(1) and two values: " << p.first
<< ' ' << p.second << std::endl;
cuke::context<const std::pair<int, int>>(p);
cuke::context<std::pair<int, int>>(p);
}

THEN(custom_par_then, "their values are {int} and {int}")
{
const int var1 = CUKE_ARG(1);
const int var2 = CUKE_ARG(2);
cuke::equal(cuke::context<std::pair<int, int>>().first, var1);
cuke::equal(cuke::context<const std::pair<int, int>>().second, var2);
cuke::equal(cuke::context<std::pair<int, int>>().second, var2);
}

struct foo
Expand Down

0 comments on commit ac407bb

Please sign in to comment.