Skip to content

Commit

Permalink
🎨 Update BDD scenario to use aligned GWT
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-jusiak committed Feb 1, 2022
1 parent 5fbda77 commit cd12498
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions example/BDD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,14 @@ int main() {
};
};
};

scenario("Addition");
given("I have number 40");
auto number = 40;

when("I add 2 to number");
number += 2;

then("I expect number to be 42");
42_i == number;
}

0 comments on commit cd12498

Please sign in to comment.