mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 15:09:51 +00:00
* Add support for correlation coefficient code * Bump ta depends * Bump gct-ta depends version
18 lines
346 B
Go
18 lines
346 B
Go
package ta
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestGetModuleMap(t *testing.T) {
|
|
x := AllModuleNames()
|
|
xType := reflect.TypeOf(x).Kind()
|
|
if xType != reflect.Slice {
|
|
t.Fatalf("AllModuleNames() should return slice instead received: %v", x)
|
|
}
|
|
if len(x) != 9 {
|
|
t.Fatalf("unexpected results received expected 9 received: %v", len(x))
|
|
}
|
|
}
|