Skip to content

Commit

Permalink
Merge pull request #29 from tkelman/patch-1
Browse files Browse the repository at this point in the history
more specific version cutoff for type system rewrite
  • Loading branch information
timholy authored Mar 30, 2017
2 parents 5fffa2d + fc65ddd commit 2e3156d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/border.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ using Base.Test
@testset "Pad" begin
@test Pad(:replicate,[1,2], [5,3]) == Pad(:replicate,(1,2), (5,3))
@test @inferred(Pad{2}(:replicate, [1,2], [5,3])) == Pad(:replicate,(1,2), (5,3))
paderr = VERSION < v"0.6.0-alpha" ? TypeError : MethodError
paderr = VERSION <= v"0.6.0-dev.2123" ? TypeError : MethodError
@eval @test_throws $paderr Pad{3}(:replicate, [1,2], [5,3])
@test @inferred(Pad(:circular)(rand(3,5))) == Pad(:circular, (0,0),(3,5))
@test @inferred(Pad(:circular)(centered(rand(3,5)))) == Pad{2}(:circular, (1,2),(1,2))
Expand Down

0 comments on commit 2e3156d

Please sign in to comment.