File: skudtest.crm

package info (click to toggle)
crm114 20100106-9
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,184 kB
  • sloc: ansic: 34,910; sh: 617; makefile: 578; lisp: 208
file content (24 lines) | stat: -rwxr-xr-x 814 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /usr/bin/crm
#
#	skudtest.crm - start/length works regression test

# Copyright 2009 William S. Yerazunis.
# This file is under GPLv3, as described in COPYING.
#

#  this little regression test by Jskud verifies match start/length works
window
output /:*:_nl: CRM114 testing that start \/ length works in matches :*:_nl: :*:_nl:/
isolate (:whitelist:)
input (:whitelist:) [whitelist.mfp.example]
output /DEBUG: whitelist==<<:*:whitelist:>>:*:_nl:/
# match (:waste:) [:whitelist:] /^/ ; # force match so <fromend> will work
{
        # Grab the next regex -- turn the one-per-line patterns into a regex
        match <fromend nomultiline> (:waste: :whregex:) [:whitelist:]  /(.+)/
        {
                output /DEBUG: matched==<<:*:whregex:>>:*:_nl:/
        }
        liaf
}
output /DEBUG: [TheEnd]:*:_nl:/