summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/cast-integer
blob: 4972ee7459893268536950e2bdab784d9a19820b (plain)
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
#
#  PRE: update if
#
update {
       control:Cleartext-Password := 'hello'
       request:Class := 0x00000101
}

if (<integer>Class == 257) {
	update reply {
		Filter-Id := "filter"
	}
}

if (<integer>Class < 256) {
	update reply {
		Filter-Id += "wrong"
	}
}

if (<integer>Class > 257) {
	update reply {
		Filter-Id += "wrong"
	}
}