1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-08-10 22:31:32 +02:00

fix: update dependencies

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2024-03-20 21:43:03 +01:00
parent 74763bdadc
commit 9ad9b4a9bf
3 changed files with 8 additions and 9 deletions

View File

@@ -22,6 +22,7 @@ import (
F "github.com/IBM/fp-go/function"
"github.com/IBM/fp-go/internal/utils"
IO "github.com/IBM/fp-go/io"
O "github.com/IBM/fp-go/option"
S "github.com/IBM/fp-go/string"
"github.com/stretchr/testify/assert"
@@ -121,7 +122,7 @@ func TestStringer(t *testing.T) {
}
func TestFromIO(t *testing.T) {
f := func() string { return "abc" }
f := IO.Of("abc")
e := FromIO[error](f)
assert.Equal(t, Right[error]("abc"), e)