Skip to content

Commit

Permalink
Fixes test DB
Browse files Browse the repository at this point in the history
The font used in the paper doesn't display properly on my system, so "e: looks the same as "c".
  • Loading branch information
emersion committed May 22, 2017
1 parent 866505c commit 702aef8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions prefixspan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ var testMinSupport = 2
var testDB = []Sequence{
{{a}, {a, b, c}, {a, c}, {d}, {c, f}},
{{a, d}, {c}, {b, c}, {a, e}},
{{c, f}, {a, b}, {d, f}, {c}, {b}},
{{c}, {g}, {a, f}, {c}, {b}, {c}},
{{e, f}, {a, b}, {d, f}, {c}, {b}},
{{e}, {g}, {a, f}, {c}, {b}, {c}},
}

var testDBProjectedA = []Sequence{
Expand Down Expand Up @@ -89,9 +89,8 @@ func TestAppendToSequence_b(t *testing.T) {
}

func TestAppendToSequence_c(t *testing.T) {
result := appendToSequence(testDBProjectedA, testMinSupport, c)
result := appendToSequence(testDB, testMinSupport, c)

// <c> in the paper
want := []Sequence{
{{a, c}, {d}, {c, f}},
{{b, c}, {a, e}},
Expand Down

0 comments on commit 702aef8

Please sign in to comment.