Uploaded September 2024 | Updated September 2026, 1 week ago
Full course: youtube.com/watch?v=R33h77nrMqc&list=PLPoSdR46FgI412aItyJhj2bF66cudB6Qs&index=1&t=2s
In this episode, we continue our journey with Test-Driven Development (TDD) in Rust! We start with a quick recap of the previous episode and dive straight into writing our first test in the lib.rs file. You'll learn how to implement a search function step-by-step, ensuring it passes all tests using TDD principles.
Throughout the video, we encounter a test that initially fails, but don’t worry—we’ll debug and add the necessary logic to make it work. Once the function is solid, we'll modify the run function to display the results on the screen, followed by a final test to ensure everything is running smoothly.
By the end, you'll have a clear understanding of applying TDD in Rust and feel confident writing tests and functions.
If you have any comments or feedback, let me know in the comments.
Previous lesson: youtube.com/live/D_76TcfzDTU
Lifetimes: youtu.be/S-SkEA4QWWE
My Products
Rust book: mybook.to/YJI6DI
Rust Workbook: https://francescociulla.gumroad.com/l...
Rust Cheatsheet: https://francescociulla.gumroad.com/l...
Useful Links
ALL THE LINKS HERE: francescociulla.com
GitHub repository:
github.com/FrancescoXX/rust-cli
0:00 Introduction: in the previous episode...
0:39 Test-Driven Development in Rust
1:18 Write a Test in the lib.rs file
3:31 Implement the search function.
4:28 Test still fails - add the logic to the search function
6:06 Modify the run function to print the results on the screen
6:50 Final test
7:51 Conclusion
Full course: youtube.com/watch?v=R33h77nrMqc&list=PLPoSdR46FgI412aItyJhj2bF66cudB6Qs&index=1&t=2s
In this episode, we continue our journey with Test-Driven Development (TDD) in Rust! We start with a quick recap of the previous episode and dive straight into writing our first test in the lib.rs file. You'll learn how to implement a search function step-by-step, ensuring it passes all tests using TDD principles.
Throughout the video, we encounter a test that initially fails, but don’t worry—we’ll debug and add the necessary logic to make it work. Once the function is solid, we'll modify the run function to display the results on the screen, followed by a final test to ensure everything is running smoothly.
By the end, you'll have a clear understanding of applying TDD in Rust and feel confident writing tests and functions.
If you have any comments or feedback, let me know in the comments.
Previous lesson: youtube.com/live/D_76TcfzDTU
Lifetimes: youtu.be/S-SkEA4QWWE
My Products
Rust book: mybook.to/YJI6DI
Rust Workbook: https://francescociulla.gumroad.com/l...
Rust Cheatsheet: https://francescociulla.gumroad.com/l...
Useful Links
ALL THE LINKS HERE: francescociulla.com
GitHub repository:
github.com/FrancescoXX/rust-cli
0:00 Introduction: in the previous episode...
0:39 Test-Driven Development in Rust
1:18 Write a Test in the lib.rs file
3:31 Implement the search function.
4:28 Test still fails - add the logic to the search function
6:06 Modify the run function to print the results on the screen
6:50 Final test
7:51 Conclusion








