Skip to content

Commit

Permalink
Use unique names for tests throughout packages
Browse files Browse the repository at this point in the history
  • Loading branch information
magaupp committed Dec 19, 2024
1 parent 0938faa commit c72606a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/templates/go/readme
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ First, we need to implement two sorting algorithms, in this case `MergeSort` and

**You have the following tasks:**

1. [task][Implement Bubble Sort](artemis/testing/test/structural.TestBubbleSort,artemis/testing/test/behavior.TestBubbleSort)
1. [task][Implement Bubble Sort](artemis/testing/test/structural.TestBubbleSort,artemis/testing/test/behavior.TestBubbleSortSortsCorrectly)
Implement the method `PerformSort([]time.Time)` in the class `BubbleSort`. Make sure to follow the Bubble Sort algorithm exactly.

2. [task][Implement Merge Sort](artemis/testing/test/structural.TestMergeSort,artemis/testing/test/behavior.TestMergeSort)
2. [task][Implement Merge Sort](artemis/testing/test/structural.TestMergeSort,artemis/testing/test/behavior.TestMergeSortSortsCorrectly)
Implement the method `PerformSort([]time.Time)` in the class `MergeSort`. Make sure to follow the Merge Sort algorithm exactly.

### Part 2: Strategy Pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Policy interface {
Configure()
}

func TestBubbleSort(t *testing.T) {
func TestBubbleSortSortsCorrectly(t *testing.T) {
defer handlePanic(t)

dates, datesWithCorrectOrder := createTestDates()
Expand All @@ -37,7 +37,7 @@ func TestBubbleSort(t *testing.T) {
}
}

func TestMergeSort(t *testing.T) {
func TestMergeSortSortsCorrectly(t *testing.T) {
defer handlePanic(t)

dates, datesWithCorrectOrder := createTestDates()
Expand Down

0 comments on commit c72606a

Please sign in to comment.