mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 00:11:36 +08:00
校对 13章
This commit is contained in:
@@ -29,7 +29,7 @@ func TestFunction(t *testing.T) {
|
||||
|
||||
```
|
||||
|
||||
如果大部分函数都可以写成这种形式,那么写一个帮助函数 verify 对实际测试会很有用:
|
||||
如果大部分函数都可以写成这种形式,那么写一个帮助函数 verify 对实际测试会很有帮助:
|
||||
|
||||
```go
|
||||
func verify(t *testing.T, testnum int, testcase, input, output, expected string) {
|
||||
|
Reference in New Issue
Block a user