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