예제 #1
0
func TestInsert(t *testing.T) {
	toBeTested := sorting.GetUnsortedTestData()

	InsertSort(toBeTested)

	sorting.Check(t, toBeTested)
}
예제 #2
0
func TestBubble(t *testing.T) {
	toBeTested := sorting.GetUnsortedTestData()

	BubbleSort(toBeTested)

	sorting.Check(t, toBeTested)
}
예제 #3
0
func TestSelection(t *testing.T) {
	toBeTested := sorting.GetUnsortedTestData()

	SelectionSort(toBeTested)

	sorting.Check(t, toBeTested)
}