Skip to content

Commit

Permalink
test: return set on change
Browse files Browse the repository at this point in the history
  • Loading branch information
PraneethJain committed May 30, 2024
1 parent bae143b commit f5f3be6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/stdlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,13 @@ end
set = StdSet{Int64}()
@test isempty(set) == true
@test length(set) == 0
push!(set, 10)
set = push!(set, 10)
push!(set, 20)
@test isempty(set) == false
@test length(set) == 2
@test (10 set) == true
@test (20 set) == true
delete!(set, 20)
set = delete!(set, 20)
@test length(set) == 1
@test (20 set) == false
@test (30 set) == false
Expand All @@ -356,7 +356,7 @@ end
@test length(set) == 2
@test (true set) == true
@test (false set) == true
empty!(set)
set = empty!(set)
@test isempty(set) == true
end

Expand Down

0 comments on commit f5f3be6

Please sign in to comment.