Skip to content

Commit

Permalink
Un'SKIP' tests which have been fixed previously
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Sep 12, 2024
1 parent 30b4a56 commit 170461e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 64 deletions.
25 changes: 10 additions & 15 deletions scalafmt-tests/src/test/resources/scala3/OptionalBraces.stat
Original file line number Diff line number Diff line change
Expand Up @@ -6608,7 +6608,7 @@ object a {
/** c1 */
def quux = ???
}
<<< SKIP #4133 try-catch with trailing comments 6, insert end markers
<<< #4133 try-catch with trailing comments 6, insert end markers
rewrite.scala3.insertEndMarkerMinLines = 2
===
object a:
Expand All @@ -6621,22 +6621,17 @@ object a:
quux
end foo
>>>
test does not parse: [dialect scala3] expected template body
object a:
^
def foo =
try bar
catch case baz => qux
====== full result: ======
object a:
def foo =
try bar
catch case baz => qux
end try
def foo =
try bar
catch
case baz =>
qux

// c1
quux
end foo
// c1
end try
quux
end foo
<<< #4133 enclosed new anonymous with comments and added end marker
rewrite.scala3 {
convertToNewSyntax = true
Expand Down
25 changes: 10 additions & 15 deletions scalafmt-tests/src/test/resources/scala3/OptionalBraces_fold.stat
Original file line number Diff line number Diff line change
Expand Up @@ -6341,7 +6341,7 @@ object a {
/** c1 */
def quux = ???
}
<<< SKIP #4133 try-catch with trailing comments 6, insert end markers
<<< #4133 try-catch with trailing comments 6, insert end markers
rewrite.scala3.insertEndMarkerMinLines = 2
===
object a:
Expand All @@ -6354,22 +6354,17 @@ object a:
quux
end foo
>>>
test does not parse: [dialect scala3] expected template body
object a:
^
def foo =
try bar
catch case baz => qux
====== full result: ======
object a:
def foo =
try bar
catch case baz => qux
end try
def foo =
try bar
catch
case baz =>
qux

// c1
quux
end foo
// c1
end try
quux
end foo
<<< #4133 enclosed new anonymous with comments and added end marker
rewrite.scala3 {
convertToNewSyntax = true
Expand Down
27 changes: 11 additions & 16 deletions scalafmt-tests/src/test/resources/scala3/OptionalBraces_keep.stat
Original file line number Diff line number Diff line change
Expand Up @@ -6632,7 +6632,7 @@ object a {
/** c1 */
def quux = ???
}
<<< SKIP #4133 try-catch with trailing comments 6, insert end markers
<<< #4133 try-catch with trailing comments 6, insert end markers
rewrite.scala3.insertEndMarkerMinLines = 2
===
object a:
Expand All @@ -6645,23 +6645,18 @@ object a:
quux
end foo
>>>
test does not parse: [dialect scala3] expected template body
object a:
^
def foo =
try
bar
====== full result: ======
object a:
def foo =
try
bar
catch case baz => qux
end try
def foo =
try
bar
catch
case baz =>
qux

// c1
quux
end foo
// c1
end try
quux
end foo
<<< #4133 enclosed new anonymous with comments and added end marker
rewrite.scala3 {
convertToNewSyntax = true
Expand Down
29 changes: 11 additions & 18 deletions scalafmt-tests/src/test/resources/scala3/OptionalBraces_unfold.stat
Original file line number Diff line number Diff line change
Expand Up @@ -6808,7 +6808,7 @@ object a {
/** c1 */
def quux = ???
}
<<< SKIP #4133 try-catch with trailing comments 6, insert end markers
<<< #4133 try-catch with trailing comments 6, insert end markers
rewrite.scala3.insertEndMarkerMinLines = 2
===
object a:
Expand All @@ -6821,25 +6821,18 @@ object a:
quux
end foo
>>>
test does not parse: [dialect scala3] expected template body
object a:
^
def foo =
try
bar
====== full result: ======
object a:
def foo =
try
bar
catch
case baz =>
qux
end try
def foo =
try
bar
catch
case baz =>
qux

// c1
quux
end foo
// c1
end try
quux
end foo
<<< #4133 enclosed new anonymous with comments and added end marker
rewrite.scala3 {
convertToNewSyntax = true
Expand Down

0 comments on commit 170461e

Please sign in to comment.