File: begin-coercion.t

package info (click to toggle)
libclass-std-fast-perl 0.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 216 kB
  • sloc: perl: 575; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use Test::More 'no_plan';

package Problem;
use Class::Std::Fast;

# overload seems to interfere with overloading coercions
sub as_string : STRINGIFY { return 'string'; }

package main;

our $obj;
BEGIN { 
    $obj = Problem->new();
    ok("$obj");
}

ok("$obj");