mirror of
https://github.com/IBM/fp-go.git
synced 2025-06-23 00:27:49 +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"),
|
||
|
}))
|
||
|
}
|