aboutsummaryrefslogtreecommitdiff
path: root/lib/ints/ints_example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ints/ints_example_test.go')
-rw-r--r--lib/ints/ints_example_test.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/ints/ints_example_test.go b/lib/ints/ints_example_test.go
deleted file mode 100644
index f29fe748..00000000
--- a/lib/ints/ints_example_test.go
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package ints
-
-import (
- "fmt"
-)
-
-func ExampleMax() {
- ints := []int{5, 6, 7, 8, 9, 0, 1, 2, 3, 4}
-
- fmt.Println(Max(ints))
- // Output:
- // 9 4 true
-}
-
-func ExampleMergeByDistance() {
- a := []int{1, 5, 9}
- b := []int{4, 11, 15}
-
- ab := MergeByDistance(a, b, 3)
- ba := MergeByDistance(b, a, 3)
- fmt.Println(ab)
- fmt.Println(ba)
- // Output:
- // [1 5 9 15]
- // [1 5 9 15]
-}