@@ -10,7 +10,7 @@ struct searchTest {
1010
1111// Note that these are immutable therefore they are shared among all the search tests.
1212// If your algorithm is mutating these then it is advisable to create separate test cases.
13- static searchTests: []searchTest = [
13+ let searchTests: []searchTest = [
1414 //Sanity
1515 {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 10, 9, Error.NA, "Sanity"},
1616 {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 9, 8, Error.NA, "Sanity"},
@@ -29,7 +29,7 @@ static searchTests: []searchTest = [
2929 {[], 2, -1, Error.NotFound, "Empty"},
3030]
3131
32- static lowerBoundTests: []searchTest = [
32+ let lowerBoundTests: []searchTest = [
3333 //Sanity
3434 {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], -25, 0, Error.NA, "Sanity"},
3535 {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 1, 0, Error.NA, "Sanity"},
@@ -43,7 +43,7 @@ static lowerBoundTests: []searchTest = [
4343 {[], 2, -1, Error.NotFound, "Empty"},
4444]
4545
46- static upperBoundTests: []searchTest = [
46+ let upperBoundTests: []searchTest = [
4747 //Sanity
4848 {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], -25, 0, Error.NA, "Sanity"},
4949 {[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 1, 1, Error.NA, "Sanity"},
0 commit comments