File: use.t

package info (click to toggle)
libtext-charwidth-perl 0.04-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 76 kB
  • ctags: 110
  • sloc: makefile: 50; perl: 22
file content (13 lines) | stat: -rw-r--r-- 224 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
use strict;
use Test::Simple tests => 5;

use Text::CharWidth qw(:all);
ok(mbwidth("A") == 1);
ok(mbswidth("A") == 1);
ok(mbwidth("AA") == 1);
ok(mbswidth("AA") == 2);
ok(mblen("AA") == 1);
exit;
__END__