- Timestamp:
- 06/29/05 16:46:56 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/Text-FormBuilder.t
r87 r88 4 4 ######################### 5 5 6 # change 'tests => 1' to 'tests => last_test_to_print'; 7 8 use Test::More tests => 10; 6 use Test::More qw(no_plan); #tests => 11; 9 7 BEGIN { use_ok('Text::FormBuilder'); }; 10 11 #########################12 13 # Insert your test code below, the Test::More module is use()ed here so read14 # its man page ( perldoc Test::More ) for help writing this test script.15 8 16 9 my $p = Text::FormBuilder->new; … … 39 32 is(keys %{ $form->fields }, 3, 'correct number of fields'); 40 33 41 my $p2 = Text::FormBuilder->parse_array([qw(code title semester instructor)]); 42 is(keys %{ $p2->form->fields }, 4, 'correct number of fields from parse_array'); 43 #$p2->write; 34 # create some additional parsers, to make sure we aren't sharing data 35 my $p2 = Text::FormBuilder->parse_text($simple); 36 is(keys %{ $p2->form->fields }, 3, 'correct number of fields from parse_text'); 37 38 my $p3 = Text::FormBuilder->parse_array(qw(code title semester instructor)); 39 is(keys %{ $p3->form->fields }, 4, 'correct number of fields from parse_array');
Note: See TracChangeset
for help on using the changeset viewer.