1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-06-17 00:07:49 +02:00
Files
fp-go/magma/magma_test.go

20 lines
276 B
Go
Raw Normal View History

package magma
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestFirst(t *testing.T) {
m := First[string]()
assert.Equal(t, "a", m.Concat("a", "b"))
}
func TestSecond(t *testing.T) {
m := Second[string]()
assert.Equal(t, "b", m.Concat("a", "b"))
}