File: 24label.pl

package info (click to toggle)
libfuture-perl 0.52-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 676 kB
  • sloc: perl: 4,636; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use v5.10;
use strict;
use warnings;

use Test2::V0;

use Future;

my $f = Future->new;

ref_is( $f->set_label( "the label" ), $f, '->set_label returns $f' );

is( $f->label, "the label", '->label returns the label' );

$f->cancel;

done_testing;