Skip to content

Commit

Permalink
add bubblesort tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdevelopsIRL committed Nov 13, 2023
1 parent f4531f5 commit cc28938
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bubblesort/bubblesort.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package bubblesort

func bubbleSort(list []int) {

}
14 changes: 14 additions & 0 deletions bubblesort/bubblesort_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package bubblesort

import (
"testing"

"github.com/joshdevelopsIRL/jeer"
)

func TestBubbleSort(t *testing.T) {
list := []int{9, 3, 7, 4, 69, 420, 42}

bubbleSort(list)
jeer.Test[int](t).IsList().Actual(list...).Expected(3, 4, 7, 9, 42, 69, 420).Run("test 1")
}

0 comments on commit cc28938

Please sign in to comment.