Util: Add to_bool() and use it for JSON, Pg & query encoding
To improve interop with legacy modules.
This commit is contained in:
parent
06e2f950fe
commit
c7a3415485
10 changed files with 141 additions and 37 deletions
|
|
@ -22,7 +22,7 @@ is_deeply
|
|||
query_decode('a=&a=&b=&c==x&d=x='),
|
||||
{ a => ['', ''], b => '', c => '=x', d => 'x=' };
|
||||
|
||||
is query_encode { a => ['', ''], b => '', c => '=x', d => 'x=' }, 'a=&a=&b=&c=%3dx&d=x%3d';
|
||||
is query_encode { a => ['', '', \1], b => '', c => '=x', d => 'x=' }, 'a=&a=&a&b=&c=%3dx&d=x%3d';
|
||||
|
||||
|
||||
sub FUTILTEST::TO_QUERY { '&'.($_[0][0] + 1) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue