summaryrefslogblamecommitdiffstats
path: root/t/basic.t
blob: 421623a2a4ce7378f1cc4c31939b7a95c4d0da63 (plain) (tree)
1
2
3
4
5
6
7
8
9








                             
                  


           
 


                          

 
             
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;

ok(1 ~~ 1);
{
    use smartmatch sub { 0 };
    ok(!(1 ~~ 1));
    ok(!(1 ~~ 2));
}
ok(1 ~~ 1);

{
    use smartmatch 'rjbs';
    ok([] ~~ qr/ARRAY/);
    ok(!(1 ~~ sub { 0 }));
}

done_testing;