File: 05files.t

package info (click to toggle)
libinline-perl 0.86-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 504 kB
  • sloc: perl: 3,147; sh: 57; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (5)
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
33
34
35
36
use strict; use warnings;
use lib -e 't' ? 't' : 'test';
use TestInlineSetup;

use Test::More;

use Inline Config => DIRECTORY => $TestInlineSetup::DIR;

BEGIN {
    eval "require Inline::Files";
    if ($@) {
        warn "Skipping - couldn't load the Inline::Files module\n";
        print "1..1\nok 1\n";
        exit 0;
    }
}

use Inline::Files;

BEGIN {
    plan(tests => 1,
         todo => [],
         onfail => sub {},
    );
}

# test 1
# Make sure that Inline::Files support works
use Inline Foo => 'BELOW';
ok(test1('test1'));

__FOO__

foo-sub test1 {
    foo-return $_[0] foo-eq 'test1';
}