Skip to content

Commit 8d291bd

Browse files
committed
swift format
1 parent e3e6f34 commit 8d291bd

1 file changed

Lines changed: 33 additions & 33 deletions

File tree

Tests/JExtractSwiftTests/IfConfigTests.swift

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import Foundation
1516
import JExtractSwiftLib
16-
import Testing
1717
import SwiftJavaConfigurationShared
18-
import Foundation
18+
import Testing
1919

2020
@Suite
2121
struct IfConfigTests {
@@ -75,50 +75,50 @@ struct IfConfigTests {
7575
try withTemporaryFile(
7676
suffix: "json",
7777
contents: """
78-
{
79-
"attributes": [],
80-
"compilerVersion": {
81-
"components": [6, 3]
82-
},
83-
"customConditions": [
84-
"DEBUG"
85-
],
86-
"endianness": "little",
87-
"features": [],
88-
"languageMode": {
89-
"components": [5, 10]
90-
},
91-
"targetArchitectures": [],
92-
"targetAtomicBitWidths": [],
93-
"targetEnvironments": [],
94-
"targetOSs": [],
95-
"targetObjectFileFormats": [],
96-
"targetPointerAuthenticationSchemes": [],
97-
"targetPointerBitWidth": 64,
98-
"targetRuntimes": []
99-
}
100-
"""
78+
{
79+
"attributes": [],
80+
"compilerVersion": {
81+
"components": [6, 3]
82+
},
83+
"customConditions": [
84+
"DEBUG"
85+
],
86+
"endianness": "little",
87+
"features": [],
88+
"languageMode": {
89+
"components": [5, 10]
90+
},
91+
"targetArchitectures": [],
92+
"targetAtomicBitWidths": [],
93+
"targetEnvironments": [],
94+
"targetOSs": [],
95+
"targetObjectFileFormats": [],
96+
"targetPointerAuthenticationSchemes": [],
97+
"targetPointerBitWidth": 64,
98+
"targetRuntimes": []
99+
}
100+
"""
101101
) { staticBuildConfigFile in
102102
var config = Configuration()
103103
config.staticBuildConfigurationFile = staticBuildConfigFile.absoluteURL.path(percentEncoded: false)
104104

105105
try assertOutput(
106106
input: """
107-
#if DEBUG
108-
public struct IsDebug {}
109-
#else
110-
public struct IsNotDebug {}
111-
#endif
112-
""",
107+
#if DEBUG
108+
public struct IsDebug {}
109+
#else
110+
public struct IsNotDebug {}
111+
#endif
112+
""",
113113
config: config,
114114
.ffm,
115115
.java,
116116
detectChunkByInitialLines: 1,
117117
expectedChunks: [
118-
"public final class IsDebug",
118+
"public final class IsDebug"
119119
],
120120
notExpectedChunks: [
121-
"public final class IsNotDebug",
121+
"public final class IsNotDebug"
122122
]
123123
)
124124
}

0 commit comments

Comments
 (0)