File: 06trailing-slash.t

package info (click to toggle)
libfile-find-object-perl 0.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 300 kB
  • ctags: 73
  • sloc: perl: 2,022; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
#!/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"
    );
}