unit testing

kud1ing
2013-04-10 23:17:21 -07:00
parent 060ebfaa30
commit 2821dfe995
+3 -3
@@ -58,10 +58,10 @@ avoid import of functions, instead `mod::func()`
* Lines should not be longer than 100 characters.
* Use spaces for indentation not tabs.
# Testing
put tests in a test module at the bottom of the modules they test. Use `#[cfg(test)]` to only compile when testing.
# Unit testing
* Put tests in a test module at the bottom of the modules they test.
* Use `#[cfg(test)]` to only compile when testing. Example:
```
#[cfg(test)]
mod test {