我正在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
时,我没有遇到任何错误(第二张图像)。有没有人遇到类似的问题?