Skip to content

Commit

Permalink
minor; removed useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Koss committed Nov 6, 2023
1 parent b7183da commit 5e10742
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pkg/pipe/test/pipe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,24 +252,6 @@ func TestSort_ok_parallel_large(t *testing.T) {
}
}

func TestSort_ok_parallel_large_single_thread(t *testing.T) {
largeNumber := 6_000_000
rnd := randN(largeNumber)
s := pipe.Func(func(i int) (float32, bool) {
return float32(rnd[i]), true
}).
Parallel(1).
Take(largeNumber).
Sort(pipies.Less[float32]).
Do()

require.NotNil(t, s)
prevItem := s[0]
for _, item := range s {
require.GreaterOrEqual(t, item, prevItem)
}
}

func TestReduce(t *testing.T) {
res := pipe.Func(func(i int) (int, bool) {
return i, true
Expand Down

0 comments on commit 5e10742

Please sign in to comment.