summary refs log tree commit diff stats
path: root/tests/casestmt/tincompletecaseobject2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/casestmt/tincompletecaseobject2.nim')
-rw-r--r--tests/casestmt/tincompletecaseobject2.nim12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/casestmt/tincompletecaseobject2.nim b/tests/casestmt/tincompletecaseobject2.nim
index ccf6a3a6c..c080cfeb1 100644
--- a/tests/casestmt/tincompletecaseobject2.nim
+++ b/tests/casestmt/tincompletecaseobject2.nim
@@ -2,9 +2,10 @@ discard """
 cmd: "nim check $file"
 errormsg: "not all cases are covered; missing: {A, B}"
 nimout: '''
-tincompletecaseobject2.nim(16, 1) Error: not all cases are covered; missing: {B, C, D}
-tincompletecaseobject2.nim(19, 1) Error: not all cases are covered; missing: {A, C}
-tincompletecaseobject2.nim(22, 1) Error: not all cases are covered; missing: {A, B}
+tincompletecaseobject2.nim(18, 1) Error: not all cases are covered; missing: {' ', '!', '\"', '#', '$', '%', '&', '\'', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[', '\\', ']', '^', '_', '`', '{', '|', '}', '~'}
+tincompletecaseobject2.nim(22, 1) Error: not all cases are covered; missing: {B, C, D}
+tincompletecaseobject2.nim(25, 1) Error: not all cases are covered; missing: {A, C}
+tincompletecaseobject2.nim(28, 1) Error: not all cases are covered; missing: {A, B}
 '''
 """
 type
@@ -12,6 +13,11 @@ type
   AliasABCD = ABCD
   RangeABC = range[A .. C]
   AliasRangeABC = RangeABC
+  PrintableChars = range[' ' .. '~']
+
+case PrintableChars 'x':
+of '0'..'9', 'A'..'Z', 'a'..'z': discard
+of '(', ')': discard
 
 case AliasABCD A:
 of A: discard
devel&id=28de800d6148065fd3e6344f7255e793298be399'>28de800d6 ^
6ca3504df ^

1f13e94dd ^

6ca3504df ^
d560e84fc ^
346443d1b ^
d560e84fc ^
6ca3504df ^
d560e84fc ^
346443d1b ^
d560e84fc ^
6ca3504df ^
d560e84fc ^
346443d1b ^
d560e84fc ^
6ca3504df ^
d560e84fc ^
78b3f739b ^
543ec3797 ^
6ca3504df ^
d560e84fc ^
346443d1b ^
d560e84fc ^

6ca3504df ^
d560e84fc ^
346443d1b ^
d560e84fc ^
6ca3504df ^
d560e84fc ^
346443d1b ^
d560e84fc ^
6ca3504df ^
543ec3797 ^
346443d1b ^
543ec3797 ^
6ca3504df ^
543ec3797 ^
d560e84fc ^
f0341979b ^
1cc1a7faf ^
34401a363 ^

2ecdf582a ^
f0341979b ^




ebc02f6dc ^
1f13e94dd ^

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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70