Skip to content

Commit 9bdd90e

Browse files
author
ahl5esoft
committed
gofmt
1 parent 89329ae commit 9bdd90e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

reverse_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import "testing"
44

55
func Test_Reverse(t *testing.T) {
66
arr := []testModel{
7-
testModel{ID: 2, Name: "two"},
8-
testModel{ID: 1, Name: "one"},
9-
testModel{ID: 3, Name: "three"},
7+
{ID: 2, Name: "two"},
8+
{ID: 1, Name: "one"},
9+
{ID: 3, Name: "three"},
1010
}
1111
res := Reverse(arr, func(n testModel, _ int) int {
1212
return n.ID
@@ -22,9 +22,9 @@ func Test_Reverse(t *testing.T) {
2222

2323
func Test_ReverseBy(t *testing.T) {
2424
arr := []testModel{
25-
testModel{ID: 2, Name: "two"},
26-
testModel{ID: 1, Name: "one"},
27-
testModel{ID: 3, Name: "three"},
25+
{ID: 2, Name: "two"},
26+
{ID: 1, Name: "one"},
27+
{ID: 3, Name: "three"},
2828
}
2929
res := ReverseBy(arr, "id").([]testModel)
3030
if len(res) != len(arr) {
@@ -38,9 +38,9 @@ func Test_ReverseBy(t *testing.T) {
3838

3939
func Test_Chain_Reverse(t *testing.T) {
4040
arr := []testModel{
41-
testModel{ID: 2, Name: "two"},
42-
testModel{ID: 1, Name: "one"},
43-
testModel{ID: 3, Name: "three"},
41+
{ID: 2, Name: "two"},
42+
{ID: 1, Name: "one"},
43+
{ID: 3, Name: "three"},
4444
}
4545
var res []testModel
4646
Chain(arr).Reverse(func(n testModel, _ int) int {
@@ -57,9 +57,9 @@ func Test_Chain_Reverse(t *testing.T) {
5757

5858
func Test_Chain_ReverseBy(t *testing.T) {
5959
arr := []testModel{
60-
testModel{ID: 2, Name: "two"},
61-
testModel{ID: 1, Name: "one"},
62-
testModel{ID: 3, Name: "three"},
60+
{ID: 2, Name: "two"},
61+
{ID: 1, Name: "one"},
62+
{ID: 3, Name: "three"},
6363
}
6464
var res []testModel
6565
Chain(arr).ReverseBy("id").Value(&res)

0 commit comments

Comments
 (0)