Rust Code Snippets


You may be able to try some of this code out in your browser at Repl.it.

Simple Unit Test

These are basic unit tests in Rust. They often populate the same file as the functions and modules they're built to test. You can run them by executing cargo test in the terminal.