dougm       01/04/12 18:11:28

  Added:       t/response/TestAPR base64.pm
  Log:
  add test for APR::Base64
  
  Revision  Changes    Path
  1.1                  modperl-2.0/t/response/TestAPR/base64.pm
  
  Index: base64.pm
  ===================================================================
  package TestAPR::base64;
  
  use strict;
  use warnings FATAL => 'all';
  
  use Apache::Const -compile => 'OK';
  
  use Apache::Test;
  
  use APR::Base64 ();
  
  sub handler {
      my $r = shift;
  
      plan $r, tests => 2;
  
      my $encoded = APR::Base64::encode("$r");
  
      ok $encoded;
  
      my $decoded = APR::Base64::decode($encoded);
  
      ok $decoded eq "$r";
  
      Apache::OK;
  }
  
  1;
  
  
  

Reply via email to