@@ -7,7 +7,7 @@ import XCTest
77class RuntimeTypesTests : XCTestCase {
88 func testNumber( ) throws {
99 var harness = try RuntimeTestHarness ( fixture: " Number " )
10- try harness. build ( link: NumberTestWorld . link ( _ : ) ) { ( runtime , instance) in
10+ try harness. build ( link: NumberTestWorld . link) { ( instance) in
1111 let component = NumberTestWorld ( instance: instance)
1212
1313 XCTAssertEqual ( try component. roundtripBool ( v: true ) , true )
@@ -74,7 +74,7 @@ class RuntimeTypesTests: XCTestCase {
7474
7575 func testChar( ) throws {
7676 var harness = try RuntimeTestHarness ( fixture: " Char " )
77- try harness. build ( link: CharTestWorld . link ( _ : ) ) { ( runtime , instance) in
77+ try harness. build ( link: CharTestWorld . link) { ( instance) in
7878 let component = CharTestWorld ( instance: instance)
7979
8080 for char in " abcd🍏👨👩👦👦 " . unicodeScalars {
@@ -85,7 +85,7 @@ class RuntimeTypesTests: XCTestCase {
8585
8686 func testOption( ) throws {
8787 var harness = try RuntimeTestHarness ( fixture: " Option " )
88- try harness. build ( link: OptionTestWorld . link ( _ : ) ) { ( runtime , instance) in
88+ try harness. build ( link: OptionTestWorld . link) { ( instance) in
8989 let component = OptionTestWorld ( instance: instance)
9090 let value1 = try component. returnNone ( )
9191 XCTAssertEqual ( value1, nil )
@@ -111,7 +111,7 @@ class RuntimeTypesTests: XCTestCase {
111111
112112 func testRecord( ) throws {
113113 var harness = try RuntimeTestHarness ( fixture: " Record " )
114- try harness. build ( link: RecordTestWorld . link ( _ : ) ) { ( runtime , instance) in
114+ try harness. build ( link: RecordTestWorld . link) { ( instance) in
115115 let component = RecordTestWorld ( instance: instance)
116116 _ = try component. returnEmpty ( )
117117
@@ -129,7 +129,7 @@ class RuntimeTypesTests: XCTestCase {
129129
130130 func testString( ) throws {
131131 var harness = try RuntimeTestHarness ( fixture: " String " )
132- try harness. build ( link: StringTestWorld . link ( _ : ) ) { ( runtime , instance) in
132+ try harness. build ( link: StringTestWorld . link) { ( instance) in
133133 let component = StringTestWorld ( instance: instance)
134134 XCTAssertEqual ( try component. returnEmpty ( ) , " " )
135135 XCTAssertEqual ( try component. roundtrip ( v: " ok " ) , " ok " )
@@ -142,7 +142,7 @@ class RuntimeTypesTests: XCTestCase {
142142
143143 func testList( ) throws {
144144 var harness = try RuntimeTestHarness ( fixture: " List " )
145- try harness. build ( link: ListTestWorld . link ( _ : ) ) { ( runtime , instance) in
145+ try harness. build ( link: ListTestWorld . link) { ( instance) in
146146 let component = ListTestWorld ( instance: instance)
147147 XCTAssertEqual ( try component. returnEmpty ( ) , [ ] )
148148 for value in [ [ ] , [ 1 , 2 , 3 ] ] as [ [ UInt8 ] ] {
@@ -157,7 +157,7 @@ class RuntimeTypesTests: XCTestCase {
157157
158158 func testVariant( ) throws {
159159 var harness = try RuntimeTestHarness ( fixture: " Variant " )
160- try harness. build ( link: VariantTestWorld . link ( _ : ) ) { ( runtime , instance) in
160+ try harness. build ( link: VariantTestWorld . link) { ( instance) in
161161 let component = VariantTestWorld ( instance: instance)
162162 XCTAssertEqual ( try component. returnSingle ( ) , . a( 33_550_336 ) )
163163
@@ -185,7 +185,7 @@ class RuntimeTypesTests: XCTestCase {
185185
186186 func testResult( ) throws {
187187 var harness = try RuntimeTestHarness ( fixture: " Result " )
188- try harness. build ( link: ResultTestWorld . link ( _ : ) ) { ( runtime , instance) in
188+ try harness. build ( link: ResultTestWorld . link) { ( instance) in
189189 let component = ResultTestWorld ( instance: instance)
190190
191191 let value4 = try component. roundtripResult ( v: . success( ( ) ) )
@@ -217,7 +217,7 @@ class RuntimeTypesTests: XCTestCase {
217217
218218 func testEnum( ) throws {
219219 var harness = try RuntimeTestHarness ( fixture: " Enum " )
220- try harness. build ( link: EnumTestWorld . link ( _ : ) ) { ( runtime , instance) in
220+ try harness. build ( link: EnumTestWorld . link) { ( instance) in
221221 let component = EnumTestWorld ( instance: instance)
222222
223223 let value1 = try component. roundtripSingle ( v: . a)
@@ -236,7 +236,7 @@ class RuntimeTypesTests: XCTestCase {
236236
237237 func testFlags( ) throws {
238238 var harness = try RuntimeTestHarness ( fixture: " Flags " )
239- try harness. build ( link: FlagsTestWorld . link ( _ : ) ) { ( runtime , instance) in
239+ try harness. build ( link: FlagsTestWorld . link) { ( instance) in
240240 let component = FlagsTestWorld ( instance: instance)
241241
242242 XCTAssertEqual ( try component. roundtripSingle ( v: [ ] ) , [ ] )
@@ -260,7 +260,7 @@ class RuntimeTypesTests: XCTestCase {
260260
261261 func testTuple( ) throws {
262262 var harness = try RuntimeTestHarness ( fixture: " Tuple " )
263- try harness. build ( link: TupleTestWorld . link ( _ : ) ) { ( runtime , instance) in
263+ try harness. build ( link: TupleTestWorld . link) { ( instance) in
264264 let component = TupleTestWorld ( instance: instance)
265265 let value1 = try component. roundtrip ( v: ( true , 42 ) )
266266 XCTAssertEqual ( value1. 0 , true )
@@ -270,7 +270,7 @@ class RuntimeTypesTests: XCTestCase {
270270
271271 func testInterface( ) throws {
272272 var harness = try RuntimeTestHarness ( fixture: " Interface " )
273- try harness. build ( link: InterfaceTestWorld . link ( _ : ) ) { ( runtime , instance) in
273+ try harness. build ( link: InterfaceTestWorld . link) { ( instance) in
274274 let component = InterfaceTestWorld ( instance: instance)
275275 let value1 = try component. roundtripT1 ( v: 42 )
276276 XCTAssertEqual ( value1, 42 )
@@ -284,7 +284,7 @@ class RuntimeTypesTests: XCTestCase {
284284 func testNaming( ) throws {
285285 // Ensure compilation succeed for both host and guest
286286 var harness = try RuntimeTestHarness ( fixture: " Naming " )
287- try harness. build ( link: NamingTestWorld . link ( _ : ) , run: { _ , _ in } )
287+ try harness. build ( link: NamingTestWorld . link, run: { _ in } )
288288 }
289289}
290290
0 commit comments