File: 08partial.t

package info (click to toggle)
libunicode-linebreak-perl 0.0.20140601-2%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 4,124 kB
  • ctags: 1,278
  • sloc: ansic: 32,274; perl: 783; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use Test::More;
require "t/lb.pl";

BEGIN { plan tests => 15 }

foreach my $len (qw(2 76 998)) {
    foreach my $lang (qw(ja-a amitagyong ecclesiazusae ko-decomp)) {
	dotest_partial($lang, $lang, $len);
    }
    my $sea = Unicode::LineBreak::SouthEastAsian::supported();
    if ($sea) {
	$sea =~ m{libthai/(\d+)\.(\d+)\.(\d+)};
	if (0.001009 <= $1 + $2 * 0.001 + $3 * 0.000001) {
	    dotest_partial('th', 'th', $len);
	    next;
	}
    }
    dotest_partial('th', 'th.al', $len);
}