HEX
Server: Apache
System: Linux server-674799.igrow.ws 5.14.0-611.30.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 11 06:42:00 EST 2026 x86_64
User: elrashedytravel (1025)
PHP: 8.1.34
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;