aboutsummaryrefslogtreecommitdiffstats
path: root/utils_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils_test.go')
-rw-r--r--utils_test.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/utils_test.go b/utils_test.go
index c42ecef..7b912a0 100644
--- a/utils_test.go
+++ b/utils_test.go
@@ -1,6 +1,10 @@
package main
-import "testing"
+import (
+ "fmt"
+ "sort"
+ "testing"
+)
func TestLog(t *testing.T) {
tests := []struct {
@@ -72,3 +76,9 @@ func TestPost(t *testing.T) {
}
}
+
+func TestShuffle(t *testing.T) {
+ a := sort.IntSlice([]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9})
+ Shuffle(a)
+ fmt.Println(a)
+}