Skip to content

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Dec 16, 2022
1 parent 18483ea commit fc9447c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
5 changes: 1 addition & 4 deletions src/ordered_robin_dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,7 @@ julia> pop!(d, "a")
julia> pop!(d, "d")
ERROR: KeyError: key "d" not found
Stacktrace:
[1] pop!(h::OrderedRobinDict{String, Int64}, key::String)
@ DataStructures ~/.julia/dev/DataStructures/src/ordered_robin_dict.jl:357
[2] top-level scope
@ none:1
[...]
julia> pop!(d, "e", 4)
4
Expand Down
8 changes: 1 addition & 7 deletions src/robin_dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ Return the value stored for the given key, or if no mapping for the key is prese
```jldoctest
julia> d = RobinDict("a"=>1, "b"=>2, "c"=>3);
julia> get!(d, "a", 5)
1
Expand Down Expand Up @@ -515,17 +514,12 @@ Delete and return the mapping for `key` if it exists in `collection`, otherwise
```jldoctest
julia> d = RobinDict("a"=>1, "b"=>2, "c"=>3);
julia> pop!(d, "a")
1
julia> pop!(d, "d")
ERROR: KeyError: key "d" not found
Stacktrace:
[1] pop!(h::RobinDict{String, Int64}, key0::String)
@ DataStructures ~/.julia/dev/DataStructures/src/robin_dict.jl:505
[2] top-level scope
@ none:1
[...]
julia> pop!(d, "e", 4)
4
Expand Down
8 changes: 1 addition & 7 deletions src/swiss_dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ Return the value stored for the given key, or if no mapping for the key is prese
```jldoctest
julia> d = SwissDict("a"=>1, "b"=>2, "c"=>3);
julia> get!(d, "a", 5)
1
Expand Down Expand Up @@ -578,17 +577,12 @@ Delete and return the mapping for `key` if it exists in `collection`, otherwise
```jldoctest
julia> d = SwissDict("a"=>1, "b"=>2, "c"=>3);
julia> pop!(d, "a")
1
julia> pop!(d, "d")
ERROR: KeyError: key "d" not found
Stacktrace:
[1] pop!(h::SwissDict{String, Int64}, key::String)
@ DataStructures ~/.julia/dev/DataStructures/src/swiss_dict.jl:599
[2] top-level scope
@ none:1
[...]
julia> pop!(d, "e", 4)
4
Expand Down

0 comments on commit fc9447c

Please sign in to comment.