Add an inline table of contents to all posts

This commit is contained in:
Philipp Oppermann
2019-03-19 13:01:25 +01:00
parent 6055a2e342
commit 48d96243ea
10 changed files with 20 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ This blog is openly developed on [GitHub]. If you have any problems or questions
[at the bottom]: #comments
[post branch]: https://github.com/phil-opp/blog_os/tree/post-04
<!-- toc -->
## Unit Tests for `no_std` Binaries
Rust has a [built-in test framework] that is capable of running unit tests without the need to set anything up. Just create a function that checks some results through assertions and add the `#[test]` attribute to the function header. Then `cargo test` will automatically find and execute all test functions of your crate.