File: windowtest.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 (31 lines) | stat: -rwxr-xr-x 1,073 bytes parent folder | download | duplicates (8)
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
28
29
30
31
#! /usr/bin/crm
#
#	windowtest.crm - testing windonwing on windows nad variables

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

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:/
}