auto merge of #9360 : huonw/rust/4449, r=pnkfelix

Fixes #4449. (Ran it through try-bsd: http://buildbot.rust-lang.org/builders/try-bsd/builds/451)
This commit is contained in:
bors 2013-09-21 02:56:01 -07:00
commit b094cf48e1
1 changed files with 2 additions and 6 deletions

View File

@ -1061,16 +1061,12 @@ mod tests {
#[test]
fn test_decode_form_urlencoded() {
// FIXME #4449: Commented out because this causes an ICE, but only
// on FreeBSD
/*
assert_eq!(decode_form_urlencoded([]).len(), 0);
let s = "a=1&foo+bar=abc&foo+bar=12+%3D+34".as_bytes();
let form = decode_form_urlencoded(s);
assert_eq!(form.len(), 2);
assert_eq!(form.get_ref(&~"a"), &~[~"1"]);
assert_eq!(form.get_ref(&~"foo bar"), &~[~"abc", ~"12 = 34"]);
*/
assert_eq!(form.get(&~"a"), &~[~"1"]);
assert_eq!(form.get(&~"foo bar"), &~[~"abc", ~"12 = 34"]);
}
}