File: 02-nesting.t

package info (click to toggle)
libdirectory-scratch-perl 0.18-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 400 kB
  • sloc: perl: 1,173; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
# 02-nesting.t 
# Copyright (c) 2006 Jonathan Rockway <jrockway@cpan.org>

# make sure nesting directories is ok
use Test::More tests => 4;
use Directory::Scratch;

my $tmp = Directory::Scratch->new;

my $a = $tmp->mkdir('a');
ok(-d $a);
my $b = $tmp->mkdir('a/b');
ok(-d $a);
ok(-d $b);

my $c = $tmp->mkdir('foo/bar/baz');
ok(-d $c);