Skip to content

Commit 5879c34

Browse files
committed
Drop mostly-unnecessary test dep on StatsBase
1 parent 1f45a5a commit 5879c34

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using SortingAlgorithms
22
using Test
3-
using StatsBase
3+
# using StatsBase
44
using Random
55

66
stable_algorithms = [TimSort, RadixSort, PagedMergeSort]
@@ -81,14 +81,14 @@ Random.seed!(0xdeadbeef)
8181
for n in [0:10..., 100, 101, 1000, 1001]
8282
r = 1:10
8383
v = rand(1:10,n)
84-
h = fit(Histogram, v, r)
84+
# h = fit(Histogram, v, r)
8585

8686
for ord in [Base.Order.Forward, Base.Order.Reverse]
8787
# insertion sort (stable) as reference
8888
pi = sortperm(v, alg=InsertionSort, order=ord)
8989
@test isperm(pi)
9090
si = v[pi]
91-
@test fit(Histogram, si, r) == h
91+
# @test fit(Histogram, si, r) == h
9292
@test issorted(si, order=ord)
9393
@test all(issorted,[pi[si.==x] for x in r])
9494
c = copy(v)

0 commit comments

Comments
 (0)