অধ্যায় 11

Automated Test লেখা

Writing Automated Tests

Rust-এর type system অনেক bug ধরে ফেলে compile time-এ। কিন্তু logic-এর bug — যেমন function ভুল calculation করছে — সেগুলো type system ধরবে না। তার জন্য চাই test

Rust-এর test framework standard library-র সাথেই আসে — #[test] attribute, assert! macro, cargo test command। তিন পাঠে দেখব — test লেখা, test-এর running কীভাবে control করা, এবং unit ও integration test organize করা।

এই অধ্যায়ের পাঠসমূহ