fn foo() { ... } #[cfg(test)] mod tests { use super::foo; #[test] fn test_foo_case1() { ... } } よりも mod foo { pub fn foo() { ... } #[test] fn test_case1() { ... } } とした方がスッキリする気がしてきた
3:25 AM - 13 Oct 2018
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.