mirror of
https://github.com/IBM/fp-go.git
synced 2025-11-27 22:28:29 +02:00
18 lines
267 B
Go
18 lines
267 B
Go
package option
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestSequenceRecord(t *testing.T) {
|
|
assert.Equal(t, Of(map[string]string{
|
|
"a": "A",
|
|
"b": "B",
|
|
}), SequenceRecord(map[string]Option[string]{
|
|
"a": Of("A"),
|
|
"b": Of("B"),
|
|
}))
|
|
}
|