File: 06rewrite_config.p

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 (19 lines) | stat: -rw-r--r-- 248 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
Inline->init() ;

use Inline Config =>
    DIRECTORY => $TestInlineSetup::DIR,
    _TESTING => 1,
    REWRiTE_COnFIG_FILE => 1;

use Inline 'Foo';
is(add(3, 7), 10, 'foo test');

1;

__DATA__

__Foo__

foo-sub add {
    foo-return $_[0] + $_[1];
}