新手问题 assert_no_match 如何使用?

i5ting · January 22, 2013 · Last by luikore replied at January 23, 2013 · 1646 hits

# 单元测试

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

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

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

You need to Sign in before reply, if you don't have an account, please Sign up first.