Skip to content

Commit 3333385

Browse files
committed
fix test
1 parent d234833 commit 3333385

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

test/change_podfile.py

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,53 @@ def multiplePlatforms():
147147
end
148148
149149
target 'BinaryWatch Extension' do
150-
pod "AFNetworking/Serialization"
150+
platform :watchos
151+
pod "AFNetworking/Serialization", :binary => true
151152
""") ,
152153
"""
153154
import Literal
154155
import AFNetworking
156+
class A {
157+
let a: CGRect = [1,2,3,4]
158+
func dd() { _ = AFURLRequestSerializationErrorDomain }
159+
}
155160
""",
156161
"""
157162
import AFNetworking
163+
class A {
164+
func dd() { _ = AFURLRequestSerializationErrorDomain }
165+
}
158166
"""
159167
)
160168

169+
def multiplePlatformsWithALLFlag():
170+
return (wrapper(
171+
"""
172+
all_binary!
173+
174+
pod "Literal"
175+
pod "AFNetworking/Serialization"
176+
end
177+
178+
target 'BinaryWatch Extension' do
179+
platform :watchos
180+
pod "AFNetworking/Serialization"
181+
""") ,
182+
"""
183+
import Literal
184+
import AFNetworking
185+
class A {
186+
let a: CGRect = [1,2,3,4]
187+
func dd() { _ = AFURLRequestSerializationErrorDomain }
188+
}
189+
""",
190+
"""
191+
import AFNetworking
192+
class A {
193+
func dd() { _ = AFURLRequestSerializationErrorDomain }
194+
}
195+
"""
196+
)
161197

162198

163199
if __name__ == "__main__":

test/test.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,18 @@ python change_podfile.py "addVendoredLibPod"
4141
pod install
4242
build
4343

44+
#
45+
python change_podfile.py "universalFlag"
46+
pod install
47+
build
48+
4449
#
4550
python change_podfile.py "multiplePlatforms"
4651
pod install
4752
build
4853

4954
#
50-
python change_podfile.py "universalFlag"
55+
python change_podfile.py "multiplePlatformsWithALLFlag"
5156
pod install
5257
build
5358

0 commit comments

Comments
 (0)