Skip to content

Commit 7754b7f

Browse files
committed
Fixed tests for new autoformat style
1 parent 09c6626 commit 7754b7f

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

app/test/processing/app/AutoformatProducesOneUndoActionTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,10 @@ public class AutoformatProducesOneUndoActionTest extends AbstractGUITest {
4848
"}";
4949
public static final String SOURCE_AFTER = "void setup() {\n" +
5050
" // put your setup code here, to run once:\n" +
51-
"\n" +
5251
"}\n" +
5352
"\n" +
5453
"void loop() {\n" +
5554
" // put your main code here, to run repeatedly:\n" +
56-
"\n" +
5755
"}";
5856

5957
@Test

app/test/processing/app/AutoformatSavesCaretPositionTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@ public void shouldSaveCaretPositionAfterAutoformat() {
6060
String formattedText = editor.getText();
6161
assertEquals("void setup() {\n" +
6262
" // put your setup code here, to run once:\n" +
63-
"\n" +
6463
"}\n" +
6564
"\n" +
6665
"void loop() {\n" +
6766
" // put your main code here, to run repeatedly:\n" +
68-
"\n" +
6967
"}", formattedText);
7068

7169
// Autoformat with clang-format keeps cursor relative to source code

app/test/processing/app/AutoformatTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public void shouldProduceNicelyFormattedCode() throws Exception {
5858
String formattedText = editor.getText();
5959
assertEquals("void setup() {\n" +
6060
" // put your setup code here, to run once:\n" +
61-
" int foo[] = { 1, 2, 3, 4, 5};\n" +
62-
" int foo[2][5] = {{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}};\n" +
61+
" int foo[] = { 1, 2, 3, 4, 5 };\n" +
62+
" int foo[2][5] = { { 1, 2, 3, 4, 5 }, { 6, 7, 8, 9, 10 } };\n" +
6363
"}\n" +
6464
"\n" +
6565
"void loop() {\n" +

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy