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

	InsertSort(toBeTested)

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

	BubbleSort(toBeTested)

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

	SelectionSort(toBeTested)

	sorting.Check(t, toBeTested)
}