|
12 | 12 | // |
13 | 13 | //===----------------------------------------------------------------------===// |
14 | 14 |
|
| 15 | +import Foundation |
15 | 16 | import JExtractSwiftLib |
16 | | -import Testing |
17 | 17 | import SwiftJavaConfigurationShared |
18 | | -import Foundation |
| 18 | +import Testing |
19 | 19 |
|
20 | 20 | @Suite |
21 | 21 | struct IfConfigTests { |
@@ -75,50 +75,50 @@ struct IfConfigTests { |
75 | 75 | try withTemporaryFile( |
76 | 76 | suffix: "json", |
77 | 77 | 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 | + """ |
101 | 101 | ) { staticBuildConfigFile in |
102 | 102 | var config = Configuration() |
103 | 103 | config.staticBuildConfigurationFile = staticBuildConfigFile.absoluteURL.path(percentEncoded: false) |
104 | 104 |
|
105 | 105 | try assertOutput( |
106 | 106 | 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 | + """, |
113 | 113 | config: config, |
114 | 114 | .ffm, |
115 | 115 | .java, |
116 | 116 | detectChunkByInitialLines: 1, |
117 | 117 | expectedChunks: [ |
118 | | - "public final class IsDebug", |
| 118 | + "public final class IsDebug" |
119 | 119 | ], |
120 | 120 | notExpectedChunks: [ |
121 | | - "public final class IsNotDebug", |
| 121 | + "public final class IsNotDebug" |
122 | 122 | ] |
123 | 123 | ) |
124 | 124 | } |
|
0 commit comments