File: use.t

package info (click to toggle)
libtext-charwidth-perl 0.04-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 100 kB
  • sloc: perl: 22; makefile: 5
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__