Ale*_*cur 3 testing nimble swift quick-nimble
我的项目是用 Swift 2.0 编写的,我使用 Quick & Nimble 来测试我的代码。
expect(workerSpy.buySharesQuantity).to(equal(0.9602))
Run Code Online (Sandbox Code Playgroud)
我得到的是带有错误消息的预期失败
expected to equal <0.9602>, got <0.9602>
Run Code Online (Sandbox Code Playgroud)
buySharesQuantity 的定义
var buySharesQuantity: Double = 0.0
Run Code Online (Sandbox Code Playgroud)
有谁知道为什么?
归档时间: |
|
查看次数: |
587 次 |
最近记录: |