mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-31 15:10:42 +00:00
qa/spelling: Add Codespell support (#1121)
* Add codespell support * Fix paths * Add HTML files to exclusion list
This commit is contained in:
@@ -638,7 +638,7 @@ func TestLoadFromDatabase(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if ret.Exchange != testExchanges[0].Name {
|
||||
t.Fatalf("uncorrect data returned: %v", ret.Exchange)
|
||||
t.Fatalf("incorrect data returned: %v", ret.Exchange)
|
||||
}
|
||||
|
||||
err = testhelpers.CloseDatabase(dbConn)
|
||||
|
||||
@@ -344,7 +344,7 @@ func (o *OHLC) GetRelativeStrengthIndex(option []float64, period int64) ([]float
|
||||
}
|
||||
if len(option) <= 2 {
|
||||
// TODO: Check why 2 data points causes panic.
|
||||
return nil, fmt.Errorf("get relative strength index %w, requires atleast 3 data points", errNotEnoughData)
|
||||
return nil, fmt.Errorf("get relative strength index %w, requires at least 3 data points", errNotEnoughData)
|
||||
}
|
||||
if int(period) > len(option) {
|
||||
return nil, fmt.Errorf("get exponential moving average %w exceeds data length, please reduce",
|
||||
|
||||
Reference in New Issue
Block a user