Skip to content

Commit 493840e

Browse files
committed
add tests for already fixed issues
1 parent e8f596c commit 493840e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Tests/SwiftParserTest/Expressions.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ final class ExpressionTests: XCTestCase {
212212
"""
213213
"""#
214214
}
215+
216+
try AssertParse({ $0.parseSourceFile() }, allowErrors: true) {
217+
#"""
218+
"\(()
219+
"""#
220+
}
215221
}
216222

217223
func testStringLiterals() throws {
@@ -305,6 +311,12 @@ final class ExpressionTests: XCTestCase {
305311
"\(x)"
306312
"""#
307313
}
314+
315+
try AssertParse({ $0.parseSourceFile() }, allowErrors: true) {
316+
#"""
317+
""""
318+
"""#
319+
}
308320
}
309321

310322
func testRangeSubscript() throws {

0 commit comments

Comments
 (0)