Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.38 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. use strict;
  4. use warnings;
  5.  
  6. use Mojo::Parameters;
  7.  
  8. use Test::More tests => 2;
  9.  
  10. is(Mojo::Parameters->new(foo => undef, bar => 'bar')->to_string, 'foo=&bar=bar', "right string if the first param in list is undefined");
  11. 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