Rust 和 Cargo 提供了一個簡單的單元測試 (unit test) 框架:
在你的程式碼的任何地方都可添加單元測試。
整合測試 (integration test) 則可放置在 tests/ 資料夾下。
tests/