Skip to content

Commit 3b2946a

Browse files
authored
Merge pull request #914 from YangHgRi/patch-1
Update ch11-01-writing-tests.md
2 parents 1df649f + 72a8ecf commit 3b2946a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch11-01-writing-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- https://github.com/rust-lang/book/blob/main/src/ch11-01-writing-tests.md -->
44
<!-- commit 02e053cdbbb3bf9edd9ad32ed49eb533404350a9 -->
55

6-
Rust 中的测试函数是用来验证非测试代码是否是按照期望的方式运行的。测试函数体通常执行如下三种操作:
6+
Rust 中的测试函数是用来验证非测试代码是否按照期望的方式运行的。测试函数体通常执行如下三种操作:
77

88
- 设置任何所需的数据或状态
99
- 运行需要测试的代码

0 commit comments

Comments
 (0)