Skip to content

Commit 120fe91

Browse files
committed
Remove tests for deprecated deque constructor and add deprecation tests
1 parent 98a80d0 commit 120fe91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_deque.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
@test length(sprint(dump,q)) >= 0
1313
end
1414

15-
@testset "empty dequeue 2" begin
16-
@test typeof(deque(Int)) === typeof(Deque{Int}())
17-
end
18-
1915
@testset "empty dequeue 3" begin
2016
q = DataStructures.DequeBlock{Int}(0,0)
2117
@test length(q) == 0
@@ -202,4 +198,8 @@
202198
@test isempty(q)
203199
end
204200

201+
@testset "deprecated constructors" begin
202+
@test_deprecated deque(Int)
203+
end
204+
205205
end # @testset Deque

0 commit comments

Comments
 (0)