使用计算表达式的Objective-C单元测试框架。
建议
什么是MuscleAssert
- 提供一个让差异更明显的断言消息。
- 不是“它在哪里?”而是“有什么不同?”
相关链接
- http://bleis-tift.hatenablog.com/entry/about-power-assert
- http://pocketberserker.hatenablog.com/entry/2016/06/02/143727
- https://github.com/persimmon-projects/Persimmon.MuscleAssert
- http://bleis-tift.hatenablog.com/entry/hello-muscle-assert
描述
安装
CocoaPods
pod 'MuscleAssert'
使用方法
NSArray *left = @{
@"user": @{
@"name" : @"akuraru",
}
};
NSArray *right = @{
@"user": @{
@"name" : @"",
}
};
结果
path: .user.name.0
left: akuraru
right:
贡献
非常欢迎提交pull requests、问题报告和补丁。
- 分叉它!
- 创建你的功能分支:
git checkout -b my-new-feature
- 提交你的更改:
git commit -am '添加一些新功能'
- 将分支推送到远程仓库:
git push origin my-new-feature
- 提交pull request :D
许可证
MIT