From 2821dfe995e3524e2e0b84422c5044bb1e2da8fb Mon Sep 17 00:00:00 2001 From: kud1ing Date: Wed, 10 Apr 2013 23:17:21 -0700 Subject: [PATCH] unit testing --- Note-style-guide.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Note-style-guide.md b/Note-style-guide.md index 16cda0d..611e29e 100644 --- a/Note-style-guide.md +++ b/Note-style-guide.md @@ -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 {