File: is_modified.t

package info (click to toggle)
libconfig-simple-perl 4.59-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 336 kB
  • sloc: perl: 659; makefile: 8
file content (32 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (6)
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
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl 1.t'

#########################

# change 'tests => 1' to 'tests => last_test_to_print';

use Test;
use FindBin '$RealBin';
use File::Spec;
BEGIN { 
  plan tests => 2;
}

require Config::Simple;
ok(1);

#########################

# Insert your test code below, the Test::More module is use()ed here so read
# its man page ( perldoc Test::More ) for help writing this test script.

my $cfg_file = File::Spec->catfile($RealBin, 'is_modified.cfg');

my $cfg = new Config::Simple(filename=>$cfg_file)
                        or die Config::Simple->error;
ok($cfg);

$cfg->autosave(1);

$cfg->param('newValue', 'Just a test');