4.2.4 文档测试
没有什么比带有示例的文档更好的了.也没有什么比不能工作的例子更糟的了,因为有可能文档中的代码已经修改了.为此,Rust支持自动测试我们示例代码.让我们看一个富有血肉的src/lib.rs的例子:
//! The àdder` crate provides functions that add numbers to other numbers.
//!
//...
分类:
其他好文 时间:
2015-07-10 09:31:30
阅读次数:
258
入门笔记翻译整理自:https://docs.djangoproject.com/en/1.8/topics/*该笔记将对各个模块进行单独介绍*migration&Managing files&Testing in Django1. migration的命令migrate命令负责应用migratio...
分类:
其他好文 时间:
2015-07-07 08:15:15
阅读次数:
133
XCTest 的小技巧:批量重用测试、测试异步操作...
分类:
其他好文 时间:
2015-07-01 18:30:18
阅读次数:
114
Take Advantage of Code Analysis ToolsSarah Mount
THE VALUE OF TESTING is something that is drummed into software devel- opers from the early stages of their programming journey. In recent years, the r...
分类:
其他好文 时间:
2015-07-01 10:00:07
阅读次数:
86
I've develop a test application in Xamarin Studio (Android with C#) and wanted to test it on my phone.The application worked just fine in the Device e...
分类:
移动开发 时间:
2015-06-27 15:49:12
阅读次数:
136
第一章概论问题:软件工程的几种知识领域具体怎样区分呢?回答:知识领域可以分为:1.Software Requirements 2.Software Desing 3.Software Construction 4.Software Testing 5.Software Maintenance ...
分类:
其他好文 时间:
2015-06-27 11:32:14
阅读次数:
117
A set is an unordered collection with no duplicate elements. Basic uses include membership testing and eliminating duplicate entries. Set objects also...
分类:
编程语言 时间:
2015-06-22 19:17:19
阅读次数:
160
接着上一讲留下的关子,机器学习是否可行与假设集合H的数量M的关系。机器学习是否可行的两个关键点:1. Ein(g)是否足够小(在训练集上的表现是否出色)2. Eout(g)是否与Ein(g)足够接近(在训练集上的表现能否迁移到测试集上)(1)如果假设集合数量小(M小),可知union bound后,...
分类:
其他好文 时间:
2015-06-19 18:25:12
阅读次数:
101
第十三章本章主要讲软件的测试,软件测试是为了更好的完善我们的程序,找出程序中的bug。问题是,我们要如何快速的找到bug,因为写程序的时候很容易陷进里面,不能用一个用户的身份来体验我们的软件,这个问题我们要如何解决?第十四章本章主要介绍了QA的主要内容,还有QA和Testing的区别。问题是,质量保...
分类:
其他好文 时间:
2015-06-18 13:07:11
阅读次数:
110