Uncomment a test. Fixes #4449.

This commit is contained in:
Huon Wilson 2013-09-20 16:55:01 +10:00
parent 7f826cb25a
commit 76a53911b4
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"]);
}
}