Skip to content

Commit 5f910bb

Browse files
committed
Update test check files
1 parent 5da2654 commit 5f910bb

File tree

12 files changed

+20
-11
lines changed

12 files changed

+20
-11
lines changed

tests/patmat/i8922b.scala renamed to tests/neg-custom-args/fatal-warnings/i8922b.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ object Interpreter {
3131
case Binary(left, op, right) =>
3232
val l = eval(left)
3333
val r = eval(right)
34-
(l, r, op.tokenType) match {
34+
(l, r, op.tokenType) match { // error
3535
case (l: DoubleV, r: DoubleV, PLUS) => ???
3636
case (l: IntV, r: IntV, PLUS) => ???
3737
case (l: DoubleV, r: IntV, PLUS) => ???

tests/patmat/gadt-covariant.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6: Pattern Match Exhaustivity: (BExpr(_), IExpr(_)), (IExpr(_), BExpr(_))
1+
6: Pattern Match Exhaustivity: (IExpr(_), BExpr(_)), (BExpr(_), IExpr(_))

tests/patmat/patmat-adt.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
7: Pattern Match Exhaustivity: Good(Bad(_)), Bad(Good(_))
22
19: Pattern Match Exhaustivity: Some(_)
33
24: Pattern Match Exhaustivity: (_, Some(_))
4-
29: Pattern Match Exhaustivity: (None, None), (Some(_), Some(_))
4+
29: Pattern Match Exhaustivity: (Some(_), Some(_)), (None, None)
55
50: Pattern Match Exhaustivity: LetL(IntLit), LetL(BooleanLit)

tests/patmat/patmatexhaust.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
7: Pattern Match Exhaustivity: Baz
22
11: Pattern Match Exhaustivity: Bar(_)
3-
23: Pattern Match Exhaustivity: (Qult(), Qult()), (Kult(_), Kult(_))
3+
23: Pattern Match Exhaustivity: (Kult(_), Kult(_)), (Qult(), Qult())
44
49: Pattern Match Exhaustivity: _: Gp
55
53: Pattern Match Exhaustivity: _: Gp
66
59: Pattern Match Exhaustivity: Nil

tests/patmat/t10019.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
2: Pattern Match Exhaustivity: (List(_, _: _*), List(_, _, _: _*)), (List(_, _: _*), Nil), (List(_, _, _: _*), List(_, _: _*)), (Nil, List(_, _: _*))
1+
2: Pattern Match Exhaustivity: (List(_, _, _: _*), List(_, _: _*)), (Nil, List(_, _: _*)), (List(_, _: _*), List(_, _, _: _*)), (List(_, _: _*), Nil)
22
11: Pattern Match Exhaustivity: (Foo(None), Foo(_))

tests/patmat/t4526.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
2: Pattern Match Exhaustivity: _: Int
22
7: Pattern Match Exhaustivity: (_, _)
3-
12: Pattern Match Exhaustivity: (false, false), (true, true)
3+
12: Pattern Match Exhaustivity: (true, true), (false, false)

tests/patmat/t5440.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2: Pattern Match Exhaustivity: (Nil, List(_, _: _*)), (List(_, _: _*), Nil)
1+
2: Pattern Match Exhaustivity: (List(_, _: _*), Nil), (Nil, List(_, _: _*))

tests/patmat/t6420.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5: Pattern Match Exhaustivity: (List(true, _: _*), List(true, _: _*)), (List(true, _: _*), List(false, _: _*)), (List(true, _: _*), Nil), (List(false, _: _*), List(true, _: _*)), (List(false, _: _*), List(false, _: _*)), (List(false, _: _*), Nil), (Nil, List(true, _: _*)), (Nil, List(false, _: _*)), (Nil, Nil), (_: List, List(true, _: _*)), (_: List, List(false, _: _*)), (_: List, Nil)
1+
5: Pattern Match Exhaustivity: (_: List, _: List)

tests/patmat/t6420.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@ object Test {
88
case (`c1`::x, `c0`::y) => y
99
case (`c1`::x, `c1`::y) => x
1010
}
11+
12+
def bar(x: List[Boolean], y: List[Boolean]) = (x,y) match {
13+
case (false ::x, false ::y) => x
14+
case (false ::x, true ::y) => y
15+
case (true ::x, false ::y) => y
16+
case (true ::x, true ::y) => x
17+
case (Nil, _) => Nil
18+
case (_, Nil) => Nil
19+
}
1120
}

tests/patmat/t7466.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8: Pattern Match Exhaustivity: (true, true), (true, false), (false, true), (false, false), (_, true), (_, false)
1+
8: Pattern Match Exhaustivity: (_, _)

0 commit comments

Comments
 (0)