Testing in Rust

One of the greatest tools a programmer can have under their belt is the ability to write tests to ensure the code they are producing functions well. Rust of course has a way of writing tests, and this allows a test driven development cycle.

Table of contents

Test Driven developmentSimple tests in RustTest flagsExampleTest Driven Development

What does this mean? Well, suppose you want to write a function that adds two numbers. You can first write a test, in which you say, if I call this fun...

 •  0 comments  •  flag
Share on Twitter
Published on November 08, 2021 12:50
No comments have been added yet.