Skip to content

Commit 8e1d228

Browse files
StrongeLeeroyRyanCavanaugh
authored andcommitted
Update inconsistent use of the word multiline/multi-line in test cases (#34733)
The word multi-line and multiline are used interchangeably within the file. Multiline seems to be the most used spelling of the word across the TypeScript repository codebase so a few strings have been updated to keep consistency within a single file. Additionally, corrected a minor capitalization mistake.
1 parent 5e4cd05 commit 8e1d228

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/testRunner/unittests/services/colorization.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe("unittests:: services:: Colorization", () => {
5757
}
5858

5959
describe("test getClassifications", () => {
60-
it("Returns correct token classes", () => {
60+
it("returns correct token classes", () => {
6161
testLexicalClassification("var x: string = \"foo\" ?? \"bar\"; //Hello",
6262
ts.EndOfLineState.None,
6363
keyword("var"),
@@ -96,14 +96,14 @@ describe("unittests:: services:: Colorization", () => {
9696
operator(","));
9797
});
9898

99-
it("correctly classifies a multi-line string with one backslash", () => {
99+
it("correctly classifies a multiline string with one backslash", () => {
100100
testLexicalClassification("'line1\\",
101101
ts.EndOfLineState.None,
102102
stringLiteral("'line1\\"),
103103
finalEndOfLineState(ts.EndOfLineState.InSingleQuoteStringLiteral));
104104
});
105105

106-
it("correctly classifies a multi-line string with three backslashes", () => {
106+
it("correctly classifies a multiline string with three backslashes", () => {
107107
testLexicalClassification("'line1\\\\\\",
108108
ts.EndOfLineState.None,
109109
stringLiteral("'line1\\\\\\"),
@@ -131,42 +131,42 @@ describe("unittests:: services:: Colorization", () => {
131131
finalEndOfLineState(ts.EndOfLineState.None));
132132
});
133133

134-
it("correctly classifies the continuing line of a multi-line string ending in one backslash", () => {
134+
it("correctly classifies the continuing line of a multiline string ending in one backslash", () => {
135135
testLexicalClassification("\\",
136136
ts.EndOfLineState.InDoubleQuoteStringLiteral,
137137
stringLiteral("\\"),
138138
finalEndOfLineState(ts.EndOfLineState.InDoubleQuoteStringLiteral));
139139
});
140140

141-
it("correctly classifies the continuing line of a multi-line string ending in three backslashes", () => {
141+
it("correctly classifies the continuing line of a multiline string ending in three backslashes", () => {
142142
testLexicalClassification("\\",
143143
ts.EndOfLineState.InDoubleQuoteStringLiteral,
144144
stringLiteral("\\"),
145145
finalEndOfLineState(ts.EndOfLineState.InDoubleQuoteStringLiteral));
146146
});
147147

148-
it("correctly classifies the last line of an unterminated multi-line string ending in no backslashes", () => {
148+
it("correctly classifies the last line of an unterminated multiline string ending in no backslashes", () => {
149149
testLexicalClassification(" ",
150150
ts.EndOfLineState.InDoubleQuoteStringLiteral,
151151
stringLiteral(" "),
152152
finalEndOfLineState(ts.EndOfLineState.None));
153153
});
154154

155-
it("correctly classifies the last line of an unterminated multi-line string ending in two backslashes", () => {
155+
it("correctly classifies the last line of an unterminated multiline string ending in two backslashes", () => {
156156
testLexicalClassification("\\\\",
157157
ts.EndOfLineState.InDoubleQuoteStringLiteral,
158158
stringLiteral("\\\\"),
159159
finalEndOfLineState(ts.EndOfLineState.None));
160160
});
161161

162-
it("correctly classifies the last line of an unterminated multi-line string ending in four backslashes", () => {
162+
it("correctly classifies the last line of an unterminated multiline string ending in four backslashes", () => {
163163
testLexicalClassification("\\\\\\\\",
164164
ts.EndOfLineState.InDoubleQuoteStringLiteral,
165165
stringLiteral("\\\\\\\\"),
166166
finalEndOfLineState(ts.EndOfLineState.None));
167167
});
168168

169-
it("correctly classifies the last line of a multi-line string", () => {
169+
it("correctly classifies the last line of a multiline string", () => {
170170
testLexicalClassification("'",
171171
ts.EndOfLineState.InSingleQuoteStringLiteral,
172172
stringLiteral("'"),

0 commit comments

Comments
 (0)