HEX
Server: Apache
System: Linux server-634962.emtiyz.com 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: codo66ho (1003)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/.cpan/build/URI-5.29-0/t/sort-hash-query-form.t
use strict;
use warnings;

use Test::More;

# ABSTRACT: Make sure query_form(\%hash) is sorted

use URI ();

my $base = URI->new('http://example.org/');

my $i = 1;

my $hash = { map { $_ => $i++ } qw( a b c d e f ) };

$base->query_form($hash);

is("$base","http://example.org/?a=1&b=2&c=3&d=4&e=5&f=6", "Query parameters are sorted");

done_testing;