File: 02.wide-numbers.t

package info (click to toggle)
libtext-autoformat-perl 1.750000-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 200 kB
  • sloc: perl: 745; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 399 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
21
22
23
24
use utf8;
use strict;
use Test::More tests => 1;
use Text::Autoformat;

my $str = <<'END';
1. Analyze problem
2. Design algorithm
6. Code solution
4. Test
2. Ship
END

my $after = autoformat $str, {
  lists => 'number',
  all   => 1, # rjbs thinks this should not be needed -- rjbs, 2015-04-24
};

unlike(
  $after,
  qr/2/,
  "we do not mangle lists numbered with non-ASCII numbers",
);