More cases of [cfg(test)] instead of [test].

This commit is contained in:
Felix S. Klock II 2013-05-02 01:32:37 +02:00
parent 46c2b5b045
commit a636f5160a
2 changed files with 2 additions and 2 deletions

View file

@ -673,7 +673,7 @@ pub fn write_repr<T>(writer: @Writer, object: &T) {
}
}
#[test]
#[cfg(test)]
struct P {a: int, b: float}
#[test]

View file

@ -353,7 +353,7 @@ mod tests {
assert!(*deq.get(3) == d);
}
#[test]
#[cfg(test)]
fn test_parameterized<T:Copy + Eq + Durable>(a: T, b: T, c: T, d: T) {
let mut deq = Deque::new();
assert!(deq.len() == 0);