int - cucumber floating point numbers -
when generate a cucumber phrase such
then should have result 180.123
the code generated in intellij @ least is
@then("^i should have result (\\d+).(\\d+)$") public void i_should_have_result_(int arg1, int arg2) throws throwable { // express regexp above code wish had throw new pendingexception(); }
is there way single double rather having join 2 ints?
if modify gherkin step to
then should have result "180.23"
its implementation be
@then("^i should have result \"([^\"]*)\"$") public void i_should_have_result(string arg1) throws throwable { // express regexp above code wish had throw new pendingexception(); }
which quite easy convert float.
Comments
Post a Comment