【发布时间】:2021-03-04 18:16:33
【问题描述】:
我正在做一些 BDD,但我遇到了一个我无法解决的问题。 我试图把它写成我在步骤定义中可见的小黄瓜线:
When the user has 2 overdue books where the fine is payed (fine is 0)
但是文字出来
the user has {int} overdue books where the fine is payed \\(fine is {int})
我尝试在字符前使用反斜杠转义并将整数字符串化,但这只是将它们转换为字符串。
【问题讨论】:
-
您期望“fine is 0”中的“0”是什么?