mirror of
https://github.com/IBM/fp-go.git
synced 2025-11-25 22:21:49 +02:00
26 lines
293 B
Go
26 lines
293 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)())
|
|
}
|