Skip to content

Commit 25bdf21

Browse files
committed
[test] Address review feedback from Dmitri. NFC.
1 parent 86b9a98 commit 25bdf21

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

test/1_stdlib/UnsafeBufferPointer.swift.gyb

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55

66
import StdlibUnittest
77

8-
// Also import modules which are used by StdlibUnittest internally. This
9-
// workaround is needed to link all required libraries in case we compile
10-
// StdlibUnittest with -sil-serialize-all.
11-
import SwiftPrivate
12-
#if _runtime(_ObjC)
13-
import ObjectiveC
14-
#endif
15-
168
var UnsafeBufferPointerTestSuite = TestSuite("UnsafeBufferPointer")
179
var UnsafeMutableBufferPointerTestSuite = TestSuite("UnsafeMutableBufferPointer")
1810

@@ -29,7 +21,7 @@ ${SelfName}TestSuite.test("nilBaseAddress") {
2921
var iter = emptyBuffer.makeIterator()
3022
expectEmpty(iter.next())
3123

32-
expectEqual([], Array(emptyBuffer))
24+
expectEqualSequence([], emptyBuffer)
3325
}
3426

3527
${SelfName}TestSuite.test("nonNilButEmpty") {
@@ -44,7 +36,7 @@ ${SelfName}TestSuite.test("nonNilButEmpty") {
4436
var iter = emptyBuffer.makeIterator()
4537
expectEmpty(iter.next())
4638

47-
expectEqual([], Array(emptyBuffer))
39+
expectEqualSequence([], emptyBuffer)
4840
}
4941

5042
${SelfName}TestSuite.test("nonNilNonEmpty") {
@@ -70,7 +62,7 @@ ${SelfName}TestSuite.test("nonNilNonEmpty") {
7062
expectEqual(1.0, iter.next())
7163
expectEmpty(iter.next())
7264

73-
expectEqual([1.0, 0.0, 1.0], Array(buffer))
65+
expectEqualSequence([1.0, 0.0, 1.0], buffer)
7466

7567
expectEqual(2.0, allocated[count-1])
7668
}

test/Interpreter/SDK/errors.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@
1111

1212
import StdlibUnittest
1313

14-
// Also import modules which are used by StdlibUnittest internally. This
15-
// workaround is needed to link all required libraries in case we compile
16-
// StdlibUnittest with -sil-serialize-all.
17-
import SwiftPrivate
18-
#if _runtime(_ObjC)
19-
import ObjectiveC
20-
#endif
21-
2214
struct Problem : ErrorProtocol {}
2315

2416
class ErrorImpl : NSObject, ErrorTest {

0 commit comments

Comments
 (0)