2010-10-20 17 views

回答

4

在您的测试中覆盖expectedFailures。有一个在WeakSetTest一个例子:

expectedFailures 
    "such tests work in Squeak" 
    ^#(testDoAfter testIncludes) 

更新:

As of Pharo 1.2,你还可以添加编译到测试方法:

testDontWork 
    <expectedFailure> 
    self assert: 3 equals: 4 
相关问题