Details
Description
Given a textual step:
Then string is ''
the following test will fail:
@Then("string is '$params'") public void empty(List<String> params) { ensureThat(params.isEmpty(), equalTo(true)); }
A more likely scenario would be a table example:
Scenario: <Guess> marks as <Mark>
Given the secret r,g,y,b
When I guess [Guess]
Then I should get [Mark]
Examples:
|Guess|Mark|
|c,c,c,c||
|b,c,c,c|m|
where the first row would fail if Mark were compared to an empty List.
Thanks Cyril. I'll apply patch and release it in 2.4.