【文件属性】:
文件名称:expecta:Objective-CCocoa的匹配器框架
文件大小:94KB
文件格式:ZIP
更新时间:2021-04-30 07:26:59
Objective-C
期望值
用于Objective-C和Cocoa的匹配器框架。
特征
与其他匹配器框架相比,使用Expecta的主要优点是您不必指定数据类型。 另外,Expecta匹配器的语法更易读,不会遭受括号炎的困扰。
expect ( @" foo " ).to.equal( @" foo " ); // `to` is a syntactic sugar and can be safely omitted.
expect (foo).notTo.equal( 1 );
expect ([bar isBar ]).to.equal( YES );
expect (baz).to.equal( 3.14159 );
Expecta与框架无关,它可以与XCTest和XCTest兼容的测试框架(例如或。
比赛者
expect(x).to.equal(y); 比较对象或基元x和y,如果它们相同(==)或