File: 005_bad_arguments.t

package info (click to toggle)
libdirectory-scratch-structured-perl 0.04-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 108 kB
  • sloc: perl: 62; makefile: 2
file content (23 lines) | stat: -r-xr-xr-x 407 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# test

use strict ;
use warnings ;

use Test::Exception ;
use Test::Warn;
use Test::NoWarnings ;

use Test::More 'no_plan';
use Test::Block qw($Plan);

use Directory::Scratch::Structured qw(create_structured_tree) ; 

{
local $Plan = {'non OO interface' => 1} ;

throws_ok
	{
	create_structured_tree('file_0' => 'error') ;	
	} qr[\Qinvalid element './file_0' in tree structure], "bad argument caught" ;
}