File: 04.multiline.t

package info (click to toggle)
libre-engine-re2-perl 0.18%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 440 kB
  • sloc: cpp: 270; perl: 80; makefile: 2; sh: 1
file content (13 lines) | stat: -rw-r--r-- 236 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use Test::More tests => 8;
use re::engine::RE2;

ok "a\nb" !~ /^b$/;
ok "a\nb" =~ /^b/m;
ok "a\nb" !~ /^b$/;
ok "a\nb" =~ /(?m)^b$/;
ok "a\nb" =~ /^a\nb$/m;
ok "a\nb" =~ /^b$/m;
ok "a\nb" !~ /^a.b$/;
ok "a\nb" =~ /^a.b$/s;