File: bad_args.t

package info (click to toggle)
libtest-block-perl 0.13-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 160 kB
  • sloc: perl: 133; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /usr/bin/perl

use strict;
use warnings;
use Test::More 'no_plan';
use Test::Exception;

BEGIN { use_ok ('Test::Block') };

dies_ok { Test::Block->plan } 'must specify num tests to run';
dies_ok { Test::Block->plan('foo') } 
    'value only num tests must be a number';
dies_ok { Test::Block->plan(tests => 'foo') }
    'key/value num tests must be a number';
dies_ok { Test::Block->plan('44d') } "44d isn't a number either";