mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 11:38:05 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -115,7 +115,7 @@ public sealed class BbiIndicatorTests
|
||||
var now = DateTime.UtcNow;
|
||||
for (int i = 0; i < 30; i++)
|
||||
{
|
||||
indicator.HistoricalData.AddBar(now.AddMinutes(i), 100 + i * 0.5, 110 + i * 0.5, 90 + i * 0.5, 105 + i * 0.5);
|
||||
indicator.HistoricalData.AddBar(now.AddMinutes(i), 100 + (i * 0.5), 110 + (i * 0.5), 90 + (i * 0.5), 105 + (i * 0.5));
|
||||
indicator.ProcessUpdate(new UpdateArgs(UpdateReason.HistoricalBar));
|
||||
}
|
||||
|
||||
|
||||
@@ -381,7 +381,7 @@ public sealed class BbiTests
|
||||
int n = 10_000;
|
||||
var source = new double[n];
|
||||
var output = new double[n];
|
||||
for (int i = 0; i < n; i++) { source[i] = 100.0 + i * 0.01; }
|
||||
for (int i = 0; i < n; i++) { source[i] = 100.0 + (i * 0.01); }
|
||||
var ex = Record.Exception(() => Bbi.Batch(source.AsSpan(), output.AsSpan()));
|
||||
Assert.Null(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user