Skip to content

Commit

Permalink
Merge pull request #672 from YingboMa/myb/top
Browse files Browse the repository at this point in the history
Add `top` deprecation
  • Loading branch information
oxinabox authored Sep 2, 2020
2 parents 5c433f7 + 659f89a commit 377a9bb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ after_success:
# Documenter auto-deploy
# https://juliadocs.github.io/Documenter.jl/stable/man/hosting/#.travis.yml-Configuration-1
jobs:
allow_failures:
- julia: nightly
include:
- name: "Benchmark"
julia: 1.2
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "DataStructures"
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
version = "0.18.2"
version = "0.18.3"

[deps]
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ platform:

## uncomment the following lines to allow failures on nightly julia
## (tests will run but not make your overall status red)
#matrix:
# allow_failures:
# - julia_version: latest
matrix:
allow_failures:
- julia_version: latest

branches:
only:
Expand Down
2 changes: 1 addition & 1 deletion src/DataStructures.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ module DataStructures
include("splay_tree.jl")

include("deprecations.jl")
end
end
1 change: 1 addition & 0 deletions src/deprecations.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# 0.18 deprecations. Remove before releasing 0.19
@deprecate path(t::Trie, str::AbstractString) partial_path(t::Trie, str::AbstractString)
@deprecate find_root find_root!
@deprecate top first
5 changes: 5 additions & 0 deletions test/test_deprecations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
@test collect(path(t, "robb")) == [t0, t1, t2, t3]
@test collect(path(t, "ro")) == [t0, t1, t2]
@test collect(path(t, "roa")) == [t0, t1, t2]
end

@testset "top" begin
hh = BinaryMinHeap{Float64}([1,2,3])
@test top(hh) == 1
end

2 comments on commit 377a9bb

@oxinabox
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/20722

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.18.3 -m "<description of version>" 377a9bb4d4746283b1bff6ef8fdaeb00c95810dc
git push origin v0.18.3

Please sign in to comment.