Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
xCode 的 XCTest 套件似乎有问题,我是否遗漏了什么或者为什么以下测试有时会在 true 和 false 之间切换值时失败,有时测试会继续以硬编码的 true 值失败!
-(void) testDescDefaultEmpty{ XCTAssertTrue(true, @"The description was incorrect"); }
似乎它没有清除运行新测试的旧测试..
尝试将断言更改为:
XCTAssertTrue(YES, @"The description was incorrect");