File: 05files.t

package info (click to toggle)
libinline-perl 0.43-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 412 kB
  • ctags: 107
  • sloc: perl: 3,584; makefile: 42
file content (32 lines) | stat: -rw-r--r-- 505 bytes parent folder | download
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
use lib qw(./blib/lib .);
use strict;
use Test;
use diagnostics;
use Inline Config => DIRECTORY => './_Inline_test';

BEGIN {
    eval "require Inline::Files";
    print("1..0\n"), exit if $@;
}

use Inline::Files;

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

use Inline Config => DIRECTORY => './_Inline_test';

# 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';
}