mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 05:28:05 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -70,12 +70,12 @@ public class LsmaTests
|
||||
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
double y = 2 * i + 1;
|
||||
double y = (2 * i) + 1;
|
||||
var result = lsma.Update(new TValue(DateTime.UtcNow, y));
|
||||
|
||||
if (i >= period)
|
||||
{
|
||||
double expected = 2 * (i + offset) + 1;
|
||||
double expected = (2 * (i + offset)) + 1;
|
||||
Assert.Equal(expected, result.Value, 1e-9);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user