We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1df649f + 72a8ecf commit 3b2946aCopy full SHA for 3b2946a
src/ch11-01-writing-tests.md
@@ -3,7 +3,7 @@
3
<!-- https://github.com/rust-lang/book/blob/main/src/ch11-01-writing-tests.md -->
4
<!-- commit 02e053cdbbb3bf9edd9ad32ed49eb533404350a9 -->
5
6
-Rust 中的测试函数是用来验证非测试代码是否是按照期望的方式运行的。测试函数体通常执行如下三种操作:
+Rust 中的测试函数是用来验证非测试代码是否按照期望的方式运行的。测试函数体通常执行如下三种操作:
7
8
- 设置任何所需的数据或状态
9
- 运行需要测试的代码
0 commit comments