diff --git a/Sources/SwiftSgml/Tag.swift b/Sources/SwiftSgml/Tag.swift index 1d49659..7464a64 100644 --- a/Sources/SwiftSgml/Tag.swift +++ b/Sources/SwiftSgml/Tag.swift @@ -32,10 +32,10 @@ open class Tag { self.init(builder()) } - /// initialize a new Tag with children using an async throwing builder - public convenience init(@TagBuilder _ builder: () async throws -> [Tag]) async throws { - self.init(try await builder()) - } +// /// initialize a new Tag with children using an async throwing builder +// public convenience init(@TagBuilder _ builder: () async throws -> [Tag]) async throws { +// self.init(try await builder()) +// } /// initialize a new Tag with some contents diff --git a/Tests/SwiftSgmlTests/TagTests.swift b/Tests/SwiftSgmlTests/TagTests.swift index 36aac7b..c6b3774 100644 --- a/Tests/SwiftSgmlTests/TagTests.swift +++ b/Tests/SwiftSgmlTests/TagTests.swift @@ -23,24 +23,24 @@ final class TagTests: XCTestCase { """) } - func testConvenienceAsyncTagInit() async throws { - - func leaf() async throws -> Leaf { - Leaf("hello") - } - - let root = try await Root { - try await leaf() - } - let doc = Document { - root - } - - XCTAssertEqual(DocumentRenderer().render(doc), """ - - hello - - """) - } +// func testConvenienceAsyncTagInit() async throws { +// +// func leaf() async throws -> Leaf { +// Leaf("hello") +// } +// +// let root = try await Root { +// try await leaf() +// } +// let doc = Document { +// root +// } +// +// XCTAssertEqual(DocumentRenderer().render(doc), """ +// +// hello +// +// """) +// } }