File: rt78288_blessed_object.t

package info (click to toggle)
libtest-deep-perl 0.113-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 464 kB
  • ctags: 254
  • sloc: perl: 2,144; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 296 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use warnings FATAL => 'all';

use t::std;

check_test(
    sub { cmp_deeply('Foo', isa('Foo')) },
    {
        actual_ok => 0,
        diag => <<EOM,
Checking class of \$data with isa()
   got : 'Foo'
expect : blessed into or ref of type 'Foo'
EOM
    },
    'isa on a string'
);