File: windowtest.crm

package info (click to toggle)
crm114 20080330-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,788 kB
  • ctags: 1,244
  • sloc: ansic: 29,897; sh: 1,047; makefile: 407; lisp: 208
file content (27 lines) | stat: -rw-r--r-- 916 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /usr/bin/crm
window
{
	output /:*:_nl: CRM114: testing windowing on windows and variables :*:_nl: :*:_nl:/
	output /:*:_nl: test one- input by chars, delimited by 'A' /
	window /A/ /A/
	match <> (:big:) /.*/
	output /:*:_nl: Got: :*:_nl: :*:big:/
	output /:*:_nl: test two- input by EOFs, delimited by 'A' /
	window <byeof> /A/ /A/
	match <> (:big:) /.*/
	output /:*:_nl: Got: :*:_nl: :*:big:/
	output /:*:_nl: test three- window an isolated var by chars, delimited by 'A' /
	isolate (:frib:) / *** this is the initial value *** /
	window <> (:frib:) /A/ /A/
	match <> [:frib:] (:big:) /.*/
	output /:*:_nl: Got: :*:_nl: :*:big:/
	output /:*:_nl: test four- isolated var, input by EOFs, delimited by 'A' /
	window <byeof> (:frib:) /A/ /A/
	match <> [:frib:] (:big:) /.*/
	output /:*:_nl: Got: :*:_nl: :*:big:/
	output /:*:_nl: and lastly- did the data window stay constant? :*:_nl:/
	accept
	output /:*:_nl:/
}