@@ -318,15 +318,15 @@ final class MacroToolkitTests: XCTestCase {
318318 expandedSource: """
319319
320320 struct Point {
321- var x: Int = 1 {
321+ var x: Int {
322322 get {
323323 _storage[ " x " , default: 1] as! Int
324324 }
325325 set {
326326 _storage[ " x " ] = newValue
327327 }
328328 }
329- var y: Int = 2 {
329+ var y: Int {
330330 get {
331331 _storage[ " y " , default: 2] as! Int
332332 }
@@ -562,7 +562,7 @@ final class MacroToolkitTests: XCTestCase {
562562 XCTAssertEqual ( n. initialValue? . _syntax. description, " [1, 2.5] " )
563563 XCTAssertEqual ( n. isLazy, true )
564564 }
565-
565+
566566 func testAsyncInterfaceMacro( ) throws {
567567 assertMacroExpansion (
568568 """
@@ -572,17 +572,17 @@ final class MacroToolkitTests: XCTestCase {
572572 }
573573 """ ,
574574 expandedSource:
575- """
576- protocol API {
577- func request(completion: (Int) -> Void)
578-
579- func request() async -> Int
580- }
581- """ ,
575+ """
576+ protocol API {
577+ func request(completion: (Int) -> Void)
578+
579+ func request() async -> Int
580+ }
581+ """ ,
582582 macros: testMacros
583583 )
584584 }
585-
585+
586586 func testAsyncInterfaceAllMembersMacro( ) throws {
587587 assertMacroExpansion (
588588 """
@@ -593,16 +593,16 @@ final class MacroToolkitTests: XCTestCase {
593593 }
594594 """ ,
595595 expandedSource:
596- """
597- protocol API {
598- func request1(completion: (Int) -> Void)
599- func request2(completion: (String) -> Void)
600-
601- func request1() async -> Int
596+ """
597+ protocol API {
598+ func request1(completion: (Int) -> Void)
599+ func request2(completion: (String) -> Void)
602600
603- func request2() async -> String
604- }
605- """ ,
601+ func request1() async -> Int
602+
603+ func request2() async -> String
604+ }
605+ """ ,
606606 macros: testMacros
607607 )
608608 }
@@ -617,21 +617,21 @@ final class MacroToolkitTests: XCTestCase {
617617 }
618618 """ ,
619619 expandedSource:
620- """
621- struct Client {
622- func request1(completion: (Int) -> Void) {
623- completion(0)
624- }
625-
626- func request1() async -> Int {
627- await withCheckedContinuation { continuation in
628- request1() { returnValue in
629- continuation.resume(returning: returnValue)
620+ """
621+ struct Client {
622+ func request1(completion: (Int) -> Void) {
623+ completion(0)
624+ }
625+
626+ func request1() async -> Int {
627+ await withCheckedContinuation { continuation in
628+ request1() { returnValue in
629+ continuation.resume(returning: returnValue)
630+ }
630631 }
631632 }
632633 }
633- }
634- """ ,
634+ """ ,
635635 macros: testMacros
636636 )
637637 }
@@ -649,32 +649,32 @@ final class MacroToolkitTests: XCTestCase {
649649 }
650650 """ ,
651651 expandedSource:
652- """
653- struct Client {
654- func request1(completion: (Int) -> Void) {
655- completion(0)
656- }
657- func request2(completion: (String) -> Void) {
658- completion( " " )
659- }
660-
661- func request1() async -> Int {
662- await withCheckedContinuation { continuation in
663- request1() { returnValue in
664- continuation.resume(returning: returnValue)
652+ """
653+ struct Client {
654+ func request1(completion: (Int) -> Void) {
655+ completion(0)
656+ }
657+ func request2(completion: (String) -> Void) {
658+ completion( " " )
659+ }
660+
661+ func request1() async -> Int {
662+ await withCheckedContinuation { continuation in
663+ request1() { returnValue in
664+ continuation.resume(returning: returnValue)
665+ }
665666 }
666667 }
667- }
668668
669- func request2() async -> String {
670- await withCheckedContinuation { continuation in
671- request2() { returnValue in
672- continuation.resume(returning: returnValue)
669+ func request2() async -> String {
670+ await withCheckedContinuation { continuation in
671+ request2() { returnValue in
672+ continuation.resume(returning: returnValue)
673+ }
673674 }
674675 }
675676 }
676- }
677- """ ,
677+ """ ,
678678 macros: testMacros
679679 )
680680 }
0 commit comments