Skip to content

Commit 56c4ecc

Browse files
committed
unit test for nested parsing
1 parent 85b0f65 commit 56c4ecc

File tree

2 files changed

+3864
-0
lines changed

2 files changed

+3864
-0
lines changed

SwiftDrawTests/SVGTests.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ final class SVGTests: XCTestCase {
7272
XCTAssertNoThrow(try image.pdfData())
7373
}
7474

75+
func testDeepNestingParsesBackgroundThread() async throws {
76+
let svg = await Task {
77+
SVG(named: "empire.svg", in: .test)
78+
}.value
79+
XCTAssertNotNil(svg)
80+
}
81+
7582
#if canImport(UIKit)
7683
func testRasterize() {
7784
let svg = SVG(named: "gradient-apple.svg", in: .test)!

0 commit comments

Comments
 (0)