File: 04.multiline.t

package info (click to toggle)
libre-engine-re2-perl 0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 444 kB
  • sloc: cpp: 295; perl: 80; sh: 4; makefile: 2
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;