File: throws_ok.t

package info (click to toggle)
libtest-exception-perl 0.43-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 176 kB
  • ctags: 11
  • sloc: perl: 400; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
#! /usr/bin/perl -Tw

use strict;
use warnings;
use Test::More tests => 2;
BEGIN { use_ok( 'Test::Exception' ) };

eval { throws_ok {} undef };
like( $@, '/^throws_ok/', 'cannot pass undef to throws_ok' );