File: autobox.t

package info (click to toggle)
libapache2-authcookie-perl 3.22-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 400 kB
  • ctags: 99
  • sloc: perl: 1,130; makefile: 23
file content (20 lines) | stat: -rwxr-xr-x 342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env perl
#
# tests for Apache::AuthCookie::Autobox
#

use strict;
use Test::More tests => 8;

# don't use_ok, this needs to load at compile time.
use Apache::AuthCookie::Autobox;

ok ' '->is_blank;
ok ''->is_blank;
ok "\t"->is_blank;
ok "\n"->is_blank;
ok "\r\n"->is_blank;
ok undef->is_blank;
ok !0->is_blank;
ok !'a'->is_blank;