mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
Uncomment a test. Fixes #4449.
This commit is contained in:
parent
7f826cb25a
commit
76a53911b4
@ -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"]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user