File: 02-report.t

package info (click to toggle)
libclass-accessor-classy-perl 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 96 kB
  • ctags: 39
  • sloc: perl: 818; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl

use warnings;
use strict;

use Test::More 'no_plan';

BEGIN {
  eval {require Class::Accessor::Classy};
  ok(!$@);
}

# TODO require some kind of import('USE_NOTES') or something?

my $p = 'Class::Accessor::Classy';
is($p->annotate('foo', 'thing', 'stuff'), 'stuff');
my %notes = $p->get_notes;
is_deeply(\%notes, {foo => {thing => 'stuff'}}, 'notes');

# vi:ts=2:sw=2:et:sta