Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env perl
- use strict;
- use warnings;
- use Mojo::Parameters;
- use Test::More tests => 2;
- is(Mojo::Parameters->new(foo => undef, bar => 'bar')->to_string, 'foo=&bar=bar', "right string if the first param in list is undefined");
- is(Mojo::Parameters->new(bar => 'bar', foo => undef)->to_string, 'bar=bar&foo=', "right string if the second param in list is undefined");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement