File: 06trailing-slash.t

package info (click to toggle)
libfile-find-object-perl 0.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 316 kB
  • sloc: perl: 1,813; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/perl

use strict;
use warnings;

use Test::More tests => 1;

BEGIN
{
    use File::Spec;
    use lib File::Spec->catdir( File::Spec->curdir(), "t", "lib" );
}

use File::Find::Object;

use File::Path;

{
    my $ff = File::Find::Object->new( {}, "t/", );

    my @results;
    push @results, $ff->next();

    # TEST
    is_deeply( \@results, ["t"], "t has no trailing slash" );
}