File tree Expand file tree Collapse file tree
SwiftJavaConfigurationSharedTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,18 +37,14 @@ final class FFMNestedTypesTests {
3737
3838 try st. analyze ( path: " Fake.swift " , text: class_interfaceFile)
3939
40- let generator = FFMSwift2JavaGenerator (
40+ let _ = FFMSwift2JavaGenerator (
4141 config: config,
4242 translator: st,
4343 javaPackage: " com.example.swift " ,
4444 swiftOutputDirectory: " /fake " ,
4545 javaOutputDirectory: " /fake "
4646 )
4747
48- guard let ty = st. importedTypes [ " MyNamespace.MyNestedStruct " ] else {
49- fatalError ( " Didn't import nested type! " )
50- }
51-
48+ #expect( st. importedTypes [ " MyNamespace.MyNestedStruct " ] != nil , " Didn't import nested type! " )
5249 }
53-
5450}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ struct SwiftJavaConfigurationTests {
2020
2121 @Test
2222 func parseJSONWithComments( ) throws {
23- let config = try readConfiguration (
23+ let _ = try readConfiguration (
2424 string:
2525 """
2626 // some comments
You can’t perform that action at this time.
0 commit comments