2004-11-07 Ben Maurer <bmaurer@ximian.com>
[mono-project.git] / mcs / btests / LikeOperatorA.vb
blob6653047c0c45c8eb5bec23e43f4bc008abd1a5c2
1 Option Compare Text
3 Imports System
5 Module LikeOperatorA
6 Sub main()
8 Dim a As Boolean
10 a = "HEllo" Like "H[A-Z][!M-P][!A-K]O"
11 If a <> True Then
12 Console.WriteLine("#A1-LikeOperator:Failed")
13 End If
15 a = "he12O" Like "H?##[L-P]"
16 If a <> True Then
17 Console.WriteLine("#A2-LikeOperator:Failed")
18 End If
20 a = "He[ll?o*" Like "He[[]*[?]o[*]"
21 If a <> True Then
22 Console.WriteLine("#A3-LikeOperator:Failed")
23 End If
25 a = "Hell[]o*" Like "Hell[[][]]o[*]"
26 If a <> True Then
27 Console.WriteLine("#A4-LikeOperator:Failed")
28 End If
30 a = "Hell[]o*" Like "Hell[[]][[]]o[*]"
31 If a <> False Then
32 Console.WriteLine("#A5-LikeOperator:Failed")
33 End If
35 a = "Hello*" Like "Hell[]o[*]"
36 If a <> True Then
37 Console.WriteLine("#A6-LikeOperator:Failed")
38 End If
40 End Sub
42 End Module