basic-practice/tests #1158
Replies: 10 comments 12 replies
-
这个地方地方是一个typo吧,是不是应该是:
|
Beta Was this translation helpful? Give feedback.
-
在 run 函数中调用 search 函数是指把测试模块写好的search函数copy到上面调用吧? |
Beta Was this translation helpful? Give feedback.
-
为什么会“成功通过”,又为什么“居心叵测”啊 |
Beta Was this translation helpful? Give feedback.
-
这三个步骤将在我们的开发过程中不断循环,知道所有的代码都开发完成并成功通过所有测试。 捉虫:知道->直到 |
Beta Was this translation helpful? Give feedback.
-
太棒了 ~ |
Beta Was this translation helpful? Give feedback.
-
let contents = " 注意,这行代码需要复制,而不是手写,我手写就无妨测试成功。 |
Beta Was this translation helpful? Give feedback.
-
// in lib.rs
} 这个函数从函数内部返回一个值,怎么从生命周期角度理解?而且这个results地址和外部接收的一摸一样 |
Beta Was this translation helpful? Give feedback.
-
习惯函数式这样写了- - |
Beta Was this translation helpful? Give feedback.
-
这样的思路很好啊,学到了 |
Beta Was this translation helpful? Give feedback.
-
// in src/lib.rs
} fs::read_to_string(config.file_path) 与 search(&config.query, &contents) 相比,前面的config.file_path 是不是应该加 引用 &。 |
Beta Was this translation helpful? Give feedback.
-
basic-practice/tests
https://course.rs/basic-practice/tests.html
Beta Was this translation helpful? Give feedback.
All reactions