More cases of [cfg(test)] instead of [test].
This commit is contained in:
parent
a636f5160a
commit
9862cf703b
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user