Skip to content

Commit

Permalink
Add failing allocation test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoAparicio committed May 29, 2023
1 parent 8ea8e02 commit 27857ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test_sorted_containers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2027,6 +2027,12 @@ end



function testSortedAllocs()
d = SortedDict{Int,Int}(Base.Order.ForwardOrdering())
x = @allocated empty!(d)
my_assert(x == 0)
true
end

@testset "SortedContainers" begin
@test testSortedDictBasic()
Expand All @@ -2038,6 +2044,7 @@ end
@test testSortedDictConstructors()
@test testSortedMultiDictConstructors()
@test testTokens()
@test testSortedAllocs()


# test all the errors of sorted containers
Expand Down Expand Up @@ -2109,4 +2116,3 @@ end
end
end
end

0 comments on commit 27857ba

Please sign in to comment.