File: cb.t

package info (click to toggle)
libconvert-uulib-perl 1%3A1.4~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 652 kB
  • ctags: 505
  • sloc: ansic: 8,151; perl: 145; makefile: 51; awk: 13
file content (11 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
BEGIN { $| = 1; print "1..3\n"; }
END {print "not ok 1\n" unless $loaded;}
use Convert::UUlib ':all';
$loaded = 1;
print "ok 1\n";

SetFNameFilter(sub { $_[0]+1 });
print FNameFilter(5) == 6 ? "" : "not ","ok 2\n";
SetFNameFilter();
print FNameFilter(5) == 5 ? "" : "not ","ok 3\n";