首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“上下文”测试--如何使用“上下文”测试?

“上下文”测试--如何使用“上下文”测试?
EN

Stack Overflow用户
提问于 2014-06-06 22:57:42
回答 1查看 469关注 0票数 4

我很难理解如何使用Canopy来格式化“上下文”测试。

下面的网站列出了一些例子,但是我无法用下面的代码构建我的程序。我试过其他压痕,没有任何改变。

参考资料:http://lefthandedgoat.github.io/canopy/testing.html

代码语言:javascript
复制
context: "Change text in the fields"
once(fun _ -> contains "98402" (read "#ZipCodeID"))
before(fun _ -> "#FirstNameID" << "Paul")
after(fun _ -> "#CityID" == "Tacoma")
lastly(fun _ -> "#StateID" == "WA")

这会产生以下错误:

代码语言:javascript
复制
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.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-06-07 01:02:46

@Eugene Fotin,指出我的语法错误":“。我已经修复了这个问题,构建错误消失了。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24091824

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档