Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7754b7f

Browse files
committed
Fixed tests for new autoformat style
1 parent09c6626 commit7754b7f

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
publicstaticfinalStringSOURCE_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
StringformattedText =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
StringformattedText =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)

[8]ページ先頭

©2009-2025 Movatter.jp