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

This commit is contained in:
Felix S. Klock II 2013-05-02 08:50:19 +02:00
parent a636f5160a
commit 9862cf703b

View File

@ -418,7 +418,7 @@ mod test {
new_parser_from_source_str(ps,~[],~"bogofile",source_str)
}
#[test] fn to_json_str<E : Encodable<std::json::Encoder>>(val: @E) -> ~str {
#[cfg(test)] fn to_json_str<E : Encodable<std::json::Encoder>>(val: @E) -> ~str {
do io::with_str_writer |writer| {
val.encode(~std::json::Encoder(writer));
}