Skip to content

Commit

Permalink
added sorted values to test due to multithreading
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredSchwartz committed Jun 13, 2024
1 parent d0bab8c commit 44482b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ end
@testset "apriori.jl" begin
data = load_transactions(joinpath(@__DIR__,"files/testdata.txt"),:wide; sep=',')
rules = apriori(data,0.3,2)
@test rules.RHS == ["beer","bread","cheese","eggs","ham","milk","milk","eggs"]
end
@test sort(rules.RHS) == ["beer", "bread", "cheese", "eggs", "eggs", "ham", "milk", "milk"]
end

0 comments on commit 44482b3

Please sign in to comment.