Changeset 19 in text-formbuilder for trunk/t


Ignore:
Timestamp:
11/09/04 12:47:12 (20 years ago)
Author:
peter
Message:

more documentation
added automagic parse method; moved old parse($file) method to parse_file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/Text-FormBuilder.t

    r9 r19  
    66# change 'tests => 1' to 'tests => last_test_to_print'; 
    77 
    8 use Test::More tests => 4; 
     8use Test::More tests => 6; 
    99BEGIN { use_ok('Text::FormBuilder'); }; 
    1010 
     
    1616my $p = Text::FormBuilder->new; 
    1717isa_ok($p, 'Text::FormBuilder', 'new parser'); 
    18 isa_ok($p->parse_text('')->build->form, 'CGI::FormBuilder',  'generated CGI::FormBuilder object'); 
     18isa_ok($p->parse_text('')->build->form, 'CGI::FormBuilder',  'generated CGI::FormBuilder object (build->form)'); 
     19isa_ok($p->parse_text('')->form,        'CGI::FormBuilder',  'generated CGI::FormBuilder object (form)'); 
    1920 
    20 my $p2 = Text::FormBuilder->parse_text(''); 
    21 isa_ok($p2, 'Text::FormBuilder', 'new parser (from parse_text as class method)'); 
     21$p = Text::FormBuilder->parse_text(''); 
     22isa_ok($p, 'Text::FormBuilder', 'new parser (from parse_text as class method)'); 
     23 
     24$p = Text::FormBuilder->parse(\''); 
     25isa_ok($p, 'Text::FormBuilder', 'new parser (from parse as class method)'); 
     26 
Note: See TracChangeset for help on using the changeset viewer.