You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok. This is actually a 'feature' of JGiven. This allows you to give the placeholders names. So when you can write @as("$entity entity") and the whole word $entity will be replaced by the placeholder. In this case, JGiven treats $] as the placeholder to replace.
I think I could change the behavior here to only allow [a-zA-Z0-9] as valid characters for a placeholder name. This would also be consistent with what is allowed for normal Java methods.
Either that or a minimum length of at least 2 characters is required, but maybe it makes sense to define a single char name like $a, so your suggestion is probably the best solution.
I actually decided to rewrite most of the placeholder parsing, which introduces a small backwards incompatibility. Thus this fix will be released with 0.9.0.
Hi Jan,
some small thing I've just observed:
which is called via
results in the report
The last "]" is dropped. When I'm using
with a blank after $, the report is printed out correctly:
Best regards,
Niko
The text was updated successfully, but these errors were encountered: