Skip to content

Commit 377a9bb

Browse files
authored
Merge pull request #672 from YingboMa/myb/top
Add `top` deprecation
2 parents 5c433f7 + 659f89a commit 377a9bb

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ after_success:
2020
# Documenter auto-deploy
2121
# https://juliadocs.github.io/Documenter.jl/stable/man/hosting/#.travis.yml-Configuration-1
2222
jobs:
23+
allow_failures:
24+
- julia: nightly
2325
include:
2426
- name: "Benchmark"
2527
julia: 1.2

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DataStructures"
22
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
3-
version = "0.18.2"
3+
version = "0.18.3"
44

55
[deps]
66
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ platform:
99

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

1616
branches:
1717
only:

src/DataStructures.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ module DataStructures
112112
include("splay_tree.jl")
113113

114114
include("deprecations.jl")
115-
end
115+
end

src/deprecations.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# 0.18 deprecations. Remove before releasing 0.19
22
@deprecate path(t::Trie, str::AbstractString) partial_path(t::Trie, str::AbstractString)
33
@deprecate find_root find_root!
4+
@deprecate top first

test/test_deprecations.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@
1414
@test collect(path(t, "robb")) == [t0, t1, t2, t3]
1515
@test collect(path(t, "ro")) == [t0, t1, t2]
1616
@test collect(path(t, "roa")) == [t0, t1, t2]
17+
end
18+
19+
@testset "top" begin
20+
hh = BinaryMinHeap{Float64}([1,2,3])
21+
@test top(hh) == 1
1722
end

0 commit comments

Comments
 (0)