mod items need to be marked with cfg(test) not test.
This commit is contained in:
@@ -797,7 +797,7 @@ fn test_run_basic() {
|
|||||||
po.recv();
|
po.recv();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[cfg(test)]
|
||||||
struct Wrapper {
|
struct Wrapper {
|
||||||
mut f: Option<Chan<()>>
|
mut f: Option<Chan<()>>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ fn test_fuzzy_eq_eps() {
|
|||||||
assert!(!(&1.5f).fuzzy_eq_eps(&0.9, &0.5));
|
assert!(!(&1.5f).fuzzy_eq_eps(&0.9, &0.5));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[cfg(test)]
|
||||||
mod test_complex{
|
mod test_complex{
|
||||||
use cmp::*;
|
use cmp::*;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user