Skip to content

Commit b43341e

Browse files
author
Max Moiseev
committed
[stdlib] fixing the NewArray validation test in optimized mode
1 parent 2a3787e commit b43341e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation-test/stdlib/NewArray.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ func testIsEmptyFirstLast${A}() {
428428
print(${A}<Int>().isEmpty) // CHECK-NEXT: true
429429
print(${A}(42...42).isEmpty) // CHECK-NEXT: false
430430

431-
print("<\(${A}(3...42).first!)>") // CHECK-NEXT: <3>
432-
print("<\(${A}(3...42).last!)>") // CHECK-NEXT: <42>
431+
print("<\(${A}(3..<43).first!)>") // CHECK-NEXT: <3>
432+
print("<\(${A}(3..<43).last!)>") // CHECK-NEXT: <42>
433433

434434
print("<\(${A}<Int>().first)>") // CHECK-NEXT: nil
435435
print("<\(${A}<Int>().last)>") // CHECK-NEXT: nil

0 commit comments

Comments
 (0)