- Timestamp:
- 12/09/04 11:33:17 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/Text-FormBuilder.t
r19 r42 6 6 # change 'tests => 1' to 'tests => last_test_to_print'; 7 7 8 use Test::More tests => 6;8 use Test::More qw(no_plan); #tests => 6; 9 9 BEGIN { use_ok('Text::FormBuilder'); }; 10 10 … … 25 25 isa_ok($p, 'Text::FormBuilder', 'new parser (from parse as class method)'); 26 26 27 28 my $simple = <<END; 29 name 30 email 31 phone 32 END 33 34 my $form = $p->parse(\$simple)->form; 35 # we should have three fields 36 is(keys %{ $form->fields }, 3, 'correct number of fields'); 37 38 my $p2 = Text::FormBuilder->parse_array([qw(code title semester instructor)]); 39 is(keys %{ $p2->form->fields }, 4, 'correct number of fields from parse_array'); 40 $p2->write;
Note: See TracChangeset
for help on using the changeset viewer.