Odak modu

Rust Fundamentals

A Tour of Rust:Writing and Running Unit Tests

Unit tests verify a certain single component in your code is performing correctly. This could be a certain function or event that you have created.  

Rust has built-in testing tools to test the code you write. Test functions in different code files can be tested as a whole with the "cargo test" command. Test functions do not have to be stored in a specific folder or file.

You can find detailed further information from Rust Official documentation:

https://doc.rust-lang.org/book/ch11-00-testing.html

Test

Yorumlar

Yorum yapabilmek için derse kayıt olmalısın!