mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-13 16:18:05 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -163,9 +163,9 @@ public class NormalizeValidationTests
|
||||
|
||||
norm.Update(new TValue(DateTime.UtcNow, baseVal));
|
||||
norm.Update(new TValue(DateTime.UtcNow, baseVal + epsilon));
|
||||
norm.Update(new TValue(DateTime.UtcNow, baseVal + epsilon / 2));
|
||||
norm.Update(new TValue(DateTime.UtcNow, baseVal + epsilon / 4));
|
||||
var result = norm.Update(new TValue(DateTime.UtcNow, baseVal + epsilon * 0.75));
|
||||
norm.Update(new TValue(DateTime.UtcNow, baseVal + (epsilon / 2)));
|
||||
norm.Update(new TValue(DateTime.UtcNow, baseVal + (epsilon / 4)));
|
||||
var result = norm.Update(new TValue(DateTime.UtcNow, baseVal + (epsilon * 0.75)));
|
||||
|
||||
// Should be in valid range
|
||||
Assert.True(result.Value >= 0.0 && result.Value <= 1.0);
|
||||
|
||||
Reference in New Issue
Block a user