File: RT80508.t

package info (click to toggle)
libmethod-signatures-simple-perl 1.07-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 156 kB
  • sloc: perl: 141; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

use strict;
use warnings;
use Test::More tests => 1;

{
    package My::Obj;
    use Method::Signatures::Simple;

    method with_space ( $this : $that ) {
        return ($this, $that);
    }
}

is_deeply [ My::Obj->with_space (1) ], [ 'My::Obj', 1 ], 'space between invocant name and colon should parse';

__END__