新手问题 assert_no_match 如何使用?

i5ting · 2013年01月22日 · 最后由 luikore 回复于 2013年01月23日 · 1646 次阅读

# 单元测试

assert_no_match(/[aeiou]/,"ssass")

1) Failure: test_s:11 </[aeiou]/> expected to not match <"ssass">.

断言不匹配 意思就是如果不不匹配就出错,也就是匹配就出错

需要 登录 后方可回复, 如果你还没有账号请 注册新账号