From c9cb94a8c3fbbd698c5fff537a97d284ae6a1080 Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 10 Oct 2017 11:38:35 +0100 Subject: [PATCH] Changed name of concordance sort method --- concordances/cypher_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/concordances/cypher_test.go b/concordances/cypher_test.go index 96f0bbf..4741b8b 100644 --- a/concordances/cypher_test.go +++ b/concordances/cypher_test.go @@ -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 })