SwiftParamTest:Swift的参数化测试

时间:2021-03-16 15:59:01
【文件属性】:
文件名称:SwiftParamTest:Swift的参数化测试
文件大小:2.5MB
文件格式:ZIP
更新时间:2021-03-16 15:59:01
swift test parameterized-tests Swift SwiftParamTest Swift的参数化测试。 (使用XCTest) 代码风格 SwiftParamTest支持两种依赖于Swift版本的代码样式。 函数构建器API(推荐) 我建议您在使用Swift 5.1或更高版本时使用此功能(因为此API使用了功能构建器)。 assert ( to : max) { args ( 1 , 2 , expect : 2 ) args ( 2 , 1 , expect : 2 ) args ( 4 , 4 , expect : 4 ) } // You can also use tuple (with label). assert ( to : max) { args (( x : 1 , y : 2 ), expect : 2 ) args (( x : 2 , y : 1 ), expect :

网友评论