mirror of
https://github.com/IBM/fp-go.git
synced 2025-06-23 00:27:49 +02:00
12 lines
176 B
Go
12 lines
176 B
Go
![]() |
package number
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
M "github.com/ibm/fp-go/monoid/testing"
|
||
|
)
|
||
|
|
||
|
func TestMonoidSum(t *testing.T) {
|
||
|
M.AssertLaws(t, MonoidSum[int]())([]int{0, 1, 1000, -1})
|
||
|
}
|