blob: bc17642172cb1f681f0b0495ebb7c74763c753f9 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
update {
&Tmp-String-0 := 'vvrbuctetdhc'
&Tmp-String-1 := "%{modhextohex:%{Tmp-String-0}}"
}
if (&Tmp-String-1 != 'ffc1e0d3d260') {
test_fail
}
# Invalid modhex string - not even length
update {
&Tmp-String-0 := 'vvrbuctetdh'
&Tmp-String-1 := "%{modhextohex:%{Tmp-String-0}}"
}
if (ok) {
test_fail
}
if (&Tmp-String-1 != "") {
test_fail
}
if (&Module-Failure-Message != "Modhex string invalid") {
test_fail
}
# Invalid modhex string - invalid characters
update {
&Tmp-String-0 := 'vxrbmctetdhc'
&Tmp-String-1 := "%{modhextohex:%{Tmp-String-0}}"
}
if (ok) {
test_fail
}
if (&Tmp-String-1 != "") {
test_fail
}
test_pass
|