Skip to content

Commit

Permalink
Wrap test
Browse files Browse the repository at this point in the history
  • Loading branch information
destel committed Mar 20, 2024
1 parent 7d03c7e commit 145be5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import (
"github.com/destel/rill/internal/th"
)

func TestWrap(t *testing.T) {
_ = Wrap(10, nil)
}

func TestWrapUnwrapSlice(t *testing.T) {
t.Run("empty", func(t *testing.T) {
in := WrapSlice[int](nil)
Expand Down Expand Up @@ -50,7 +54,7 @@ func TestWrapUnwrapSlice(t *testing.T) {
})
}

func TestWrap(t *testing.T) {
func TestWrapChan(t *testing.T) {
t.Run("nil", func(t *testing.T) {
res := WrapChan[int](nil, nil)
th.ExpectValue(t, res, nil)
Expand Down

0 comments on commit 145be5e

Please sign in to comment.