File: match.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 (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";