From 8a18724f53ac35095ed603a2fb259f0abdf56daf Mon Sep 17 00:00:00 2001 From: Sam Scott Date: Tue, 31 Oct 2017 23:07:39 +0000 Subject: New parsing strategy. - Only perform the percent decoding at the final step (fixes #10). - Reduce allocations by borrowing as much as possible. --- tests/test_deserialize.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_deserialize.rs') diff --git a/tests/test_deserialize.rs b/tests/test_deserialize.rs index 6d5cc9b..58cf256 100644 --- a/tests/test_deserialize.rs +++ b/tests/test_deserialize.rs @@ -378,4 +378,11 @@ fn seq_of_struct() { assert_eq!(rec_params, Query { b: vec![Test { a: 1 }, Test { a: 2 }] } ); +} + +#[test] +fn correct_decoding() { + map_test!("foo=%24", "foo"["$"]); + + map_test!("foo=%26", "foo"["&"]); } \ No newline at end of file -- cgit v1.2.3