Skip to content

Commit aecd984

Browse files
committed
Add test and drop tabs in another test
1 parent 3653fb0 commit aecd984

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

tests/pos/newline-braces.scala

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class Foo
2+
{
3+
val x: Int = 5
4+
}
5+
6+
def bar(): Int =
7+
{
8+
val x = ???
9+
x
10+
}
11+
12+
def f: Int => Int =
13+
List(1, 2, 3).map // newline inserted here
14+
{ (x: Int) =>
15+
x + 1
16+
}

tests/run/Pouring.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class Pouring(capacity: Vector[Int]):
1818

1919
val moves =
2020
val glasses = 0 until capacity.length
21-
22-
(for g <- glasses yield Move.Empty(g))
21+
22+
(for g <- glasses yield Move.Empty(g))
2323
++ (for g <- glasses yield Move.Fill(g))
2424
++ (for g1 <- glasses; g2 <- glasses if g1 != g2 yield Move.Pour(g1, g2))
2525

0 commit comments

Comments
 (0)