|
276 | 276 | @test_throws ArgumentError r[true] |
277 | 277 | @test_throws ArgumentError r[false] |
278 | 278 | end |
279 | | - @testset "indexing wtih a Bool UnitRange" begin |
| 279 | + @testset "indexing with a Bool UnitRange" begin |
280 | 280 | r = IdOffsetRange(1:0) |
281 | 281 |
|
282 | 282 | @test r[true:false] == 1:0 |
|
330 | 330 | r2 = IdOffsetRange(false:true) |
331 | 331 | testlogicalindexing(r, r2) |
332 | 332 | end |
333 | | - @testset "indexing wtih a Bool StepRange" begin |
| 333 | + @testset "indexing with a Bool StepRange" begin |
334 | 334 | r = IdOffsetRange(1:0) |
335 | 335 |
|
336 | 336 | @test r[true:true:false] == 1:1:0 |
@@ -551,7 +551,7 @@ Base.Int(a::WeirdInteger) = a |
551 | 551 | ao2 = OffsetArray(ao, (-1,)) |
552 | 552 | @test axes(ao2, 1) == typemin(Int) .+ (0:length(v)-1) |
553 | 553 | @test_throws OverflowError OffsetArray{Float64, 1, typeof(ao)}(ao, (-2, )) # inner Constructor |
554 | | - @test_throws OverflowError OffsetArray(ao, (-2, )) # convinient constructor accumulate offsets |
| 554 | + @test_throws OverflowError OffsetArray(ao, (-2, )) # convenient constructor accumulate offsets |
555 | 555 | @test_throws OverflowError OffsetVector(1:0, typemax(Int)) |
556 | 556 | @test_throws OverflowError OffsetVector(OffsetVector(1:0, 0), typemax(Int)) |
557 | 557 | @test_throws OverflowError OffsetArray(zeros(Int, typemax(Int):typemax(Int)), 2) |
|
0 commit comments