#![feature(plugin)] #![plugin(rustcov)] fn fizzbuzz(n: i32) -> String { if n % 3 == 0 { "fizz".to_owned() } else { n.to_string() } } #[test] fn test_fizz() { assert_eq!(fizzbuzz(3), "fizz"); }