Skip to content

Commit

Permalink
Remove unnecessary warnings in HeapTests (#982)
Browse files Browse the repository at this point in the history
Motivation:

There are a pair of vars that should be lets in the heap tests.

Modifications:

- Moved the var to let

Result:

No test warnings

(cherry picked from commit 12654af)
  • Loading branch information
Lukasa authored and weissi committed Apr 30, 2019
1 parent 01d0380 commit 12133ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/NIOTests/HeapTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HeapTests: XCTestCase {
var maxHeap = Heap<Int>(type: .maxHeap)
var minHeap = Heap<Int>(type: .minHeap)

var input = [16, 14, 10, 9, 8, 7, 4, 3, 2, 1]
let input = [16, 14, 10, 9, 8, 7, 4, 3, 2, 1]
input.forEach {
minHeap.append($0)
maxHeap.append($0)
Expand All @@ -67,7 +67,7 @@ class HeapTests: XCTestCase {
var maxHeap = Heap<Int>(type: .maxHeap)
var minHeap = Heap<Int>(type: .minHeap)

var input = Array([16, 14, 10, 9, 8, 7, 4, 3, 2, 1].reversed())
let input = Array([16, 14, 10, 9, 8, 7, 4, 3, 2, 1].reversed())
input.forEach {
minHeap.append($0)
maxHeap.append($0)
Expand Down

0 comments on commit 12133ae

Please sign in to comment.