Skip to content

Commit

Permalink
Changed name of concordance sort method
Browse files Browse the repository at this point in the history
  • Loading branch information
David Smith committed Oct 10, 2017
1 parent e612a10 commit c9cb94a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions concordances/cypher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,13 @@ func TestNeoReadByAuthorityEmptyConcordancesWhenUnsupportedAuthority(t *testing.

func readConceptAndCompare(t *testing.T, expected Concordances, actual Concordances, testName string) {

fullConcordanceSort(expected.Concordance)
fullConcordanceSort(actual.Concordance)
sortConcordances(expected.Concordance)
sortConcordances(actual.Concordance)

assert.True(t, reflect.DeepEqual(expected, actual), fmt.Sprintf("Actual aggregated concept differs from expected: Test: %v \n Expected: %v \n Actual: %v", testName, expected, actual))
}

func fullConcordanceSort(concordanceList []Concordance) {
func sortConcordances(concordanceList []Concordance) {
sort.SliceStable(concordanceList, func(i, j int) bool {
return concordanceList[i].Concept.ID < concordanceList[j].Concept.ID
})
Expand Down

0 comments on commit c9cb94a

Please sign in to comment.