@@ -160,7 +160,7 @@ struct MetadataCompatibilityTests {
160160
161161 @Test ( . disabled( if: !compatibilityTestEnabled, " Metadata is not implemented " ) )
162162 func forEachField( ) throws {
163- for options in [ OGTypeApplyOptions . _1 ] {
163+ for options in [ OGTypeApplyOptions . enumerateClassFields ] {
164164 let result = Metadata ( T1 . self) . forEachField ( options: options) { name, offset, type in
165165 if offset == 16 {
166166 #expect( type is Int . Type)
@@ -176,7 +176,7 @@ struct MetadataCompatibilityTests {
176176 }
177177 #expect( result == true )
178178 }
179- for options in [ OGTypeApplyOptions . _2 , . _4 , [ ] ] {
179+ for options in [ OGTypeApplyOptions . continueAfterUnknownField , . enumerateEnumCases , [ ] ] {
180180 let result = Metadata ( T1 . self) . forEachField ( options: options) { name, offset, type in
181181 if offset == 16 {
182182 #expect( type is Int . Type)
@@ -192,7 +192,7 @@ struct MetadataCompatibilityTests {
192192 }
193193 #expect( result == false )
194194 }
195- for options in [ OGTypeApplyOptions . _2 , [ ] ] {
195+ for options in [ OGTypeApplyOptions . continueAfterUnknownField , [ ] ] {
196196 let result = Metadata ( T2 . self) . forEachField ( options: options) { name, offset, type in
197197 if offset == 0 {
198198 #expect( type is Int . Type)
@@ -206,7 +206,7 @@ struct MetadataCompatibilityTests {
206206 }
207207 #expect( result == true )
208208 }
209- for options in [ OGTypeApplyOptions . _1 , . _4 ] {
209+ for options in [ OGTypeApplyOptions . enumerateClassFields , . enumerateEnumCases ] {
210210 let result = Metadata ( T2 . self) . forEachField ( options: options) { name, offset, type in
211211 if offset == 0 {
212212 #expect( type is Int . Type)
@@ -222,7 +222,7 @@ struct MetadataCompatibilityTests {
222222 }
223223 #expect( result == false )
224224 }
225- for options in [ OGTypeApplyOptions . _1 , . _2 , . _4 , [ ] ] {
225+ for options in [ OGTypeApplyOptions . enumerateClassFields , . continueAfterUnknownField , . enumerateEnumCases , [ ] ] {
226226 let result = Metadata ( T3 . self) . forEachField ( options: options) { _, _, _ in
227227 true
228228 }
0 commit comments