You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Couldn't find any tests in the source yet (if there are any, please point me to them). Is there already a convenient way of writing (unit) tests for Rust libraries?
The text was updated successfully, but these errors were encountered:
We don't have any yet. But there are several convenient ways to write tests in Rust. We can use cargo integration tests by adding a tests/ directory, unit level testing via a mod tests { } or function level testing with #[test] directive (or a combination of all three). Some good reading on the subject is can be found the relevant section of the book.
Couldn't find any tests in the source yet (if there are any, please point me to them). Is there already a convenient way of writing (unit) tests for Rust libraries?
The text was updated successfully, but these errors were encountered: