File: 07sea.t

package info (click to toggle)
libunicode-linebreak-perl 0.0.20160702-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,020 kB
  • ctags: 755
  • sloc: perl: 782; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use strict;
use Test::More;
require "t/lb.pl";

BEGIN {
    require Unicode::LineBreak;
    my $sea = Unicode::LineBreak::SouthEastAsian::supported();
    if ($sea) {
	diag "SA word segmentation supported. $sea";
	$sea =~ m{libthai/(\d+)\.(\d+)\.(\d+)};
	if (0.001009 <= $1 + $2 * 0.001 + $3 * 0.000001) {
	    plan tests => 1;
	} else {
	    plan skip_all => "Your libthai is too old (cf. CPAN RT #61922).";
	}
    } else {
	plan skip_all => "SA word segmentation not supported.";
    }
}

dotest('th', 'th', ComplexBreaking => "YES");

1;