我对如何使用 Canopy API 格式化“上下文”测试感到困惑。
以下网站列出了示例,但我无法使用以下代码构建我的程序。我尝试了其他缩进,没有任何变化。
参考: 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.