Changeset 524

Show
Ignore:
Timestamp:
05/02/07 20:22:05 (2 years ago)
Author:
hachi
Message:

Add a test to make sure it at least starts up properly.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/client-xs-20070328/Cache-Memcached-GetParserXS/t/Cache-Memcached-GetParserXS.t

    r304 r524  
    1 # Before `make install' is performed this script should be runnable with 
    2 # `make test'. After `make install' it should work as `perl Cache-Memcached-GetParserXS.t' 
    3  
    4 ######################### 
    5  
    6 # change 'tests => 1' to 'tests => last_test_to_print'; 
    7  
    8 use Test::More tests => 1; 
     1use Test::More tests => 2; 
    92BEGIN { use_ok('Cache::Memcached::GetParserXS') }; 
    103 
    11 ######################### 
    12  
    13 # Insert your test code below, the Test::More module is use()ed here so read 
    14 # its man page ( perldoc Test::More ) for help writing this test script. 
    15  
     4my $parser = Cache::Memcached::GetParserXS->new({}, 0, sub {}); 
     5ok($parser, "Parser object was created");