File: match.t

package info (click to toggle)
libre-engine-re2-perl 0.17%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 444 kB
  • sloc: cpp: 271; perl: 80; makefile: 2; sh: 1
file content (5 lines) | stat: -rw-r--r-- 195 bytes parent folder | download | duplicates (5)
1
2
3
4
5
use Test::More tests => 2;
use re::engine::RE2;

"a" =~ /b/ ? fail "invalid match" : pass "didn't match on invalid match";
"a" =~ /a/ ? pass "valid match"   : fail "didn't match on valid match";