Files
gocryptotrader/gctscript/modules/ta/ta_test.go
Adrian Gallagher 9f775ca952 Indicators: Add support for correlation coefficient (#519)
* Add support for correlation coefficient code

* Bump ta depends

* Bump gct-ta depends version
2020-06-23 17:49:08 +10:00

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))
}
}