@@ -252,7 +252,11 @@ struct TermMetaParsingTests {
252252 switch entries [ 0 ] . data {
253253 case let . pitch( pitch) :
254254 #expect( pitch. pitches. count == 1 )
255- if case let . mora( n) = pitch. pitches [ 0 ] . position { #expect( n == 1 ) } else { #expect( Bool ( false ) ) }
255+ if case let . mora( n) = pitch. pitches [ 0 ] . position {
256+ #expect( n == 1 )
257+ } else {
258+ #expect( Bool ( false ) )
259+ }
256260 #expect( pitch. pitches [ 0 ] . nasal == [ 2 ] )
257261 #expect( pitch. pitches [ 0 ] . devoice == nil )
258262 default : #expect( Bool ( false ) , " Expected pitch data " )
@@ -326,8 +330,16 @@ struct TermMetaParsingTests {
326330 switch entries [ 0 ] . data {
327331 case let . pitch( pitch) :
328332 #expect( pitch. pitches. count == 2 )
329- if case let . mora( n0) = pitch. pitches [ 0 ] . position { #expect( n0 == 0 ) } else { #expect( Bool ( false ) ) }
330- if case let . mora( n1) = pitch. pitches [ 1 ] . position { #expect( n1 == 1 ) } else { #expect( Bool ( false ) ) }
333+ if case let . mora( n0) = pitch. pitches [ 0 ] . position {
334+ #expect( n0 == 0 )
335+ } else {
336+ #expect( Bool ( false ) )
337+ }
338+ if case let . mora( n1) = pitch. pitches [ 1 ] . position {
339+ #expect( n1 == 1 )
340+ } else {
341+ #expect( Bool ( false ) )
342+ }
331343 #expect( pitch. pitches [ 0 ] . tags == [ " heiban " ] )
332344 #expect( pitch. pitches [ 1 ] . tags == [ " odaka " ] )
333345 default : #expect( Bool ( false ) , " Expected pitch data " )
@@ -355,7 +367,11 @@ struct TermMetaParsingTests {
355367 case let . pitch( pitch) :
356368 #expect( pitch. reading == " あるく " )
357369 #expect( pitch. pitches. count == 1 )
358- if case let . pattern( p) = pitch. pitches [ 0 ] . position { #expect( p == " HLL " ) } else { #expect( Bool ( false ) ) }
370+ if case let . pattern( p) = pitch. pitches [ 0 ] . position {
371+ #expect( p == " HLL " )
372+ } else {
373+ #expect( Bool ( false ) )
374+ }
359375 #expect( pitch. pitches [ 0 ] . nasal == [ 1 ] )
360376 #expect( pitch. pitches [ 0 ] . devoice == [ 2 , 3 ] )
361377 #expect( pitch. pitches [ 0 ] . tags == [ " v5k " , " intransitive " ] )
@@ -388,7 +404,11 @@ struct TermMetaParsingTests {
388404 let entries = try decoder. decode ( [ TermMetaBankV3Entry ] . self, from: data)
389405 switch entries [ 0 ] . data {
390406 case let . pitch( pitch) :
391- if case let . mora( n) = pitch. pitches [ 0 ] . position { #expect( n == 0 ) } else { #expect( Bool ( false ) ) }
407+ if case let . mora( n) = pitch. pitches [ 0 ] . position {
408+ #expect( n == 0 )
409+ } else {
410+ #expect( Bool ( false ) )
411+ }
392412 default : #expect( Bool ( false ) , " Expected pitch data " )
393413 }
394414 }
0 commit comments