1. Shlomi Fish
  2. perl-Config-IniFiles

Commits

James Rouzier  committed 9c937c8

Added test for RenameSection

  • Participants
  • Parent commits ff7af78
  • Branches default

Comments (0)

Files changed (1)

File config-inifiles/t/06oo.t

View file
  • Ignore whitespace
 use warnings;
 
 # Originally: 9
-use Test::More tests => 9;
+use Test::More tests => 10;
 
 use Config::IniFiles;
 
 ok( ! $ini->Parameters( 'Section1' ), "DeleteSection was successful." );
 
 # test 9
+# DeleteSection
+$ini->newval("Section1", "Parameter1", "Value1");
+$ini->RenameSection( 'Section1', 'Section2' );
+# TEST
+ok( ! $ini->Parameters( 'Section1' ) && $ini->Parameters( 'Section2' ), "Rename Section1 to Section2 was successful." );
+
+# test 10
 # Delete entire config
 $ini->Delete();
 # TEST