`testthat`包似乎没有任何错误时发信号通知错误

时间:2020-10-06 20:44:35

标签: r testing

我正在R中编写一个程序包,并使用 public bool TryAddItem(ItemInstance item) { Item listItem; if (TryGetItem(item, out listItem) && item.isStackable) // the is the line of interest { listItem.amount += item.amount; return true; } else if (...) ... } 编写测试用例。运行{ "TableName": "<YOUR TABLE>", "FilterExpression": "#age = :age AND (#birthplace = :gb OR #birthplace = :usa)", "ExpressionAttributeNames": {"#birthplace":"BirthPlace","#age":"Age"}, "ExpressionAttributeValues": {":gb": {"S":"Great Birttain"},":usa": {"S":"USA"},":age": {"N":"Age"}} } 时,在图像1中出现1个错误,尽管看起来我的任何测试都没有失败。运行testhat时,我没有遇到任何错误(第二张图像)。有没有人遇到类似的问题?

"Error" Message from testthat running CMD + Shift

No errors in console

0 个答案:

没有答案