Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add in another test for multi-line string formatting #1249

Merged
merged 1 commit into from Jan 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 18 additions & 1 deletion tests/unit/src/test/scala/tests/RangeFormattingSuite.scala
Expand Up @@ -62,7 +62,7 @@ object RangeFormattingSuite extends BaseLspSuite("rangeFormatting") {
)

check(
"paste-on-fist-line",
"paste-on-first-line-with-pipe",
s"""
|object Main {
| val str = '''| hi @@
Expand All @@ -78,6 +78,23 @@ object RangeFormattingSuite extends BaseLspSuite("rangeFormatting") {
|}""".stripMargin
)

check(
"paste-on-first-line-without-pipe",
s"""
|object Main {
| val str = ''' hi @@
| |
| '''.stripMargin
|}""".stripMargin,
s"""|first line""".stripMargin,
s"""
|object Main {
| val str = ''' hi first line
| |
| '''.stripMargin
|}""".stripMargin
)

check(
"without-stripmargin",
s"""
Expand Down