我很难理解如何使用Canopy来格式化“上下文”测试。
下面的网站列出了一些例子,但是我无法用下面的代码构建我的程序。我试过其他压痕,没有任何改变。
参考资料:http://lefthandedgoat.github.io/canopy/testing.html
context: "Change text in the fields"
once(fun _ -> contains "98402" (read "#ZipCodeID"))
before(fun _ -> "#FirstNameID" << "Paul")
after(fun _ -> "#CityID" == "Tacoma")
lastly(fun _ -> "#StateID" == "WA")这会产生以下错误:
Error 1 Incomplete structured construct at or before this point in lambda expression. Expected incomplete structured construct at or before this point or other token.发布于 2014-06-07 01:02:46
@Eugene Fotin,指出我的语法错误":“。我已经修复了这个问题,构建错误消失了。
https://stackoverflow.com/questions/24091824
复制相似问题