Skip to content

Commit ce49deb

Browse files
authored
Remove circular test dependency on StatsBase (#107)
1 parent 6e5a511 commit ce49deb

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ julia = "1"
1212
[extras]
1313
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
1414
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
15-
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1615
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1716

1817
[targets]
19-
test = ["Aqua", "Random", "StatsBase", "Test"]
18+
test = ["Aqua", "Random", "Test"]

test/runtests.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using SortingAlgorithms
22
using Test
3-
using StatsBase
43
using Random
54

65
stable_algorithms = [TimSort, RadixSort, PagedMergeSort]
@@ -81,14 +80,12 @@ Random.seed!(0xdeadbeef)
8180
for n in [0:10..., 100, 101, 1000, 1001]
8281
r = 1:10
8382
v = rand(1:10,n)
84-
h = fit(Histogram, v, r)
8583

8684
for ord in [Base.Order.Forward, Base.Order.Reverse]
8785
# insertion sort (stable) as reference
8886
pi = sortperm(v, alg=InsertionSort, order=ord)
8987
@test isperm(pi)
9088
si = v[pi]
91-
@test fit(Histogram, si, r) == h
9289
@test issorted(si, order=ord)
9390
@test all(issorted,[pi[si.==x] for x in r])
9491
c = copy(v)

0 commit comments

Comments
 (0)