Skip to content

Commit ad48cf2

Browse files
committed
tests: remove final newlines from tests that are not supposed to have them, according to comments
1 parent 56bd254 commit ad48cf2

5 files changed

+5
-5
lines changed

test/IDE/complete_at_eof_in_call_no_newline_1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
// A-DAG: Pattern/ExprSpecific: ['(']{#(x): Int#})[#Void#]{{; name=.+$}}
88
// A: End completions
99
func f(_ x: Int) {}
10-
f(#^A^#
10+
f(#^A^#

test/IDE/complete_at_eof_no_newline_1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ struct FooStruct {
1313
}
1414
var fooObject: FooStruct
1515
// There is no newline on the following line. Don't fix this!
16-
fooObject.#^A^#
16+
fooObject.#^A^#

test/IDE/complete_at_eof_no_newline_2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
// A: End completions
1111
func f() {}
1212
// There is no newline on the following line. Don't fix this!
13-
#^A^#
13+
#^A^#
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// RUN: %target-parse-verify-swift
22

33
// This file does not end in a trailing newline; this is deliberate!
4-
/* unterminated block comment expected-note{{comment started here}} expected-error{{unterminated '/*' comment}}{{126-126=*/}}
4+
/* unterminated block comment expected-note{{comment started here}} expected-error{{unterminated '/*' comment}}{{126-126=*/}}

test/Parse/EOF/unterminated-string-literal-missing-newline.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
// This file does not end in a trailing newline; this is deliberate, don't fix it!
66

7-
/* expected-error {{unterminated string literal}} */ "
7+
/* expected-error {{unterminated string literal}} */ "

0 commit comments

Comments
 (0)