1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-08-10 22:31:32 +02:00
Files
fp-go/io/logging_test.go
Dr. Carsten Leue bf04dad87c fix: add missing chain methods
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
2023-07-15 23:27:45 +02:00

26 lines
291 B
Go

package io
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestLogger(t *testing.T) {
l := Logger[int]()
lio := l("out")
assert.Equal(t, nil, lio(10)())
}
func TestLogf(t *testing.T) {
l := Logf[int]
lio := l("Value is %d")
assert.Equal(t, nil, lio(10)())
}