没有合适的资源?快使用搜索试试~ 我知道了~
SwiftHamcrest:针对Swift的Hamcrest测试断言
共74个文件
swift:35个
plist:6个
xcscheme:4个
需积分: 5 0 下载量 100 浏览量
2021-02-22
05:21:08
上传
评论
收藏 3.34MB ZIP 举报
温馨提示
迅捷的Hamcrest Hamcrest为您提供高级匹配器,并为您的Swift单元测试提供更好的错误消息。 Hamcrest最初是用Java编写的,可用于。 教程 该教程也可以作为Hamcrest工作区中的Playground使用。 通常,您在单元测试中使用这些匹配器,其中不匹配会导致测试失败,但是它们也可以在Playgrounds中使用,其中不匹配只会打印错误消息。 无论哪种情况,都需要导入Hamcrest模块。 import Hamcrest 操作员匹配器 以下是非常简单的匹配器。 匹配的表达式看起来像正则布尔表达式,但是提供可读的不匹配消息,而不是通用错误。 let x = 1 + 1 // The comments show the human-readable error messages created by the assertions. assertThat (
资源推荐
资源详情
资源评论
收起资源包目录
SwiftHamcrest-master.zip (74个子文件)
SwiftHamcrest-master
.gitignore 2KB
Hamcrest.xcworkspace
contents.xcworkspacedata 437B
HamcrestDemo
ViewController.swift 523B
Info.plist 1KB
Images.xcassets
AppIcon.appiconset
Contents.json 585B
Base.lproj
LaunchScreen.xib 4KB
Main.storyboard 2KB
AppDelegate.swift 2KB
build.gradle 1024B
bin
swiftformat 10.87MB
.travis.yml 430B
HamcrestDemo-macOS.xcodeproj
xcshareddata
xcschemes
HamcrestDemo-macOS.xcscheme 4KB
project.pbxproj 17KB
HamcrestDemoTests
HamcrestDemoTests.swift 447B
Info.plist 733B
gradlew 6KB
Hamcrest
Hamcrest.swift 4KB
StringMatchers.swift 2KB
SequenceMatchers.swift 7KB
OperatorMatchers.swift 2KB
Info.plist 806B
Descriptions.swift 2KB
Matcher.swift 497B
Playground.playground
contents.xcplayground 216B
section-1.swift 101B
timeline.xctimeline 120B
ReflectionMatchers.swift 1KB
BasicMatchers.swift 2KB
README.playground
Contents.swift 8KB
contents.xcplayground 238B
MetaMatchers.swift 2KB
DictionaryMatchers.swift 1KB
MatchResult.swift 587B
ArithmeticMatchers.swift 2KB
LICENSE 1KB
CHANGELOG.md 766B
README.md 13KB
HamcrestDemo-macOS
Info.plist 1KB
Images.xcassets
AppIcon.appiconset
Contents.json 903B
Playground.playground
contents.xcplayground 266B
section-1.swift 101B
timeline.xctimeline 120B
main.swift 239B
Base.lproj
MainMenu.xib 48KB
AppDelegate.swift 548B
Cartfile.project 154B
gradle
wrapper
gradle-wrapper.properties 202B
gradle-wrapper.jar 54KB
Package.swift 419B
SwiftHamcrest.podspec 915B
HamcrestDemoTests-macOS
HamcrestDemoTests.swift 306B
Info.plist 733B
HamcrestDemo.xcodeproj
xcshareddata
xcschemes
HamcrestDemo.xcscheme 4KB
project.pbxproj 19KB
HamcrestTests
MetaMatcherTests.swift 6KB
AssertThatTests.swift 1KB
StringMatcherTests.swift 2KB
OperatorMatcherTests.swift 2KB
ArithmeticMatcherTests.swift 2KB
Info.plist 733B
ReflectionMatcherTests.swift 2KB
SequenceMatcherTests.swift 7KB
ErrorTests.swift 3KB
MatcherMocks.swift 1KB
DictionaryMatcherTests.swift 2KB
MatchResultTests.swift 1KB
BaseTestCase.swift 3KB
BasicMatcherTests.swift 1KB
Hamcrest.xcodeproj
xcshareddata
xcschemes
Hamcrest-iOS.xcscheme 4KB
Hamcrest-macOS.xcscheme 3KB
project.xcworkspace
contents.xcworkspacedata 153B
project.pbxproj 42KB
.slather.yml 222B
.editorconfig 361B
共 74 条
- 1
资源评论
biuh
- 粉丝: 23
- 资源: 4737
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- STC15单片机串口2使用程序例子
- 读取日志的excel生成周报 用python3开发weekplan-master.zip
- python 读取excel数据导入dbimport-data-master.zip
- K折交叉验证BP神经网络,多输入多输出BP神经网络(代码完整,数据齐全)
- B07训练原图.zip
- python-对Excel数据处理做可视化分析.zip
- 人工智能大作业-无人机图像目标检测的python源代码+文档说明.zip
- 基于GoogLeNet实现Cifar-10图像分类项目python源码(高分项目).zip
- 数据库 sql 面试题目及答案解析.docx
- 汽车常见 10 种传感器故障后的表现与解决措施.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功