Skip to content

Commit 6c5ec48

Browse files
cristianocamiralies
authored andcommitted
update tests
1 parent 870b79a commit 6c5ec48

File tree

2 files changed

+49
-13
lines changed

2 files changed

+49
-13
lines changed

jscomp/build_tests/super_errors/expected/warnings4.res.expected

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
13 │ }
1010
14 │
1111

12-
You forgot to handle a possible case here, for example:
13-
#second(_) | #fourth | #third
12+
You forgot to handle a possible case here, though we don't have more information on the value.

jscomp/build_tests/super_errors/expected/warnings5.res.expected

+48-11
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ Either bind these labels explicitly or add ', _' to the pattern.
2323
14 │
2424
15 │ switch y {
2525

26-
You forgot to handle a possible case here, for example:
27-
{otherValue: true}
26+
You forgot to handle a possible case here, though we don't have more information on the value.
2827

2928

3029
Warning number 9
@@ -51,9 +50,7 @@ Either bind these labels explicitly or add ', _' to the pattern.
5150
18 │
5251
19 │ let arr = [1]
5352

54-
You forgot to handle a possible case here, for example:
55-
{typ: WithPayload(false)} |
56-
{typ: Variant | One | Two | Three | Four | Five | Six | Seven(_)}
53+
You forgot to handle a possible case here, though we don't have more information on the value.
5754

5855

5956
Warning number 8
@@ -67,8 +64,7 @@ Either bind these labels explicitly or add ', _' to the pattern.
6764
24 │
6865
25 │ switch arr {
6966

70-
You forgot to handle a possible case here, for example:
71-
[_]
67+
You forgot to handle a possible case here, though we don't have more information on the value.
7268

7369

7470
Warning number 8
@@ -82,8 +78,7 @@ Either bind these labels explicitly or add ', _' to the pattern.
8278
28 │
8379
29 │ switch arr {
8480

85-
You forgot to handle a possible case here, for example:
86-
[]
81+
You forgot to handle a possible case here, though we don't have more information on the value.
8782

8883

8984
Warning number 8
@@ -95,6 +90,48 @@ Either bind these labels explicitly or add ', _' to the pattern.
9590
30 │ | [1, 2] => ()
9691
31 │ }
9792
32 │
93+
33 │ let lst = list{}
9894

99-
You forgot to handle a possible case here, for example:
100-
[1, 0] | [0, _] | []
95+
You forgot to handle a possible case here, though we don't have more information on the value.
96+
97+
98+
Warning number 8
99+
/.../fixtures/warnings5.res:35:1-37:1
100+
101+
33 │ let lst = list{}
102+
34 │
103+
35 │ switch lst {
104+
36 │  | list{} => ()
105+
37 │ }
106+
38 │
107+
39 │ switch lst {
108+
109+
You forgot to handle a possible case here, though we don't have more information on the value.
110+
111+
112+
Warning number 8
113+
/.../fixtures/warnings5.res:39:1-41:1
114+
115+
37 │ }
116+
38 │
117+
39 │ switch lst {
118+
40 │  | list{1,2} => ()
119+
41 │ }
120+
42 │
121+
43 │ switch lst {
122+
123+
You forgot to handle a possible case here, though we don't have more information on the value.
124+
125+
126+
Warning number 8
127+
/.../fixtures/warnings5.res:43:1-45:1
128+
129+
41 │ }
130+
42 │
131+
43 │ switch lst {
132+
44 │  | list{1} => ()
133+
45 │ }
134+
46 │
135+
47 │
136+
137+
You forgot to handle a possible case here, though we don't have more information on the value.

0 commit comments

Comments
 (0)