mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 22:08:05 +00:00
Refactor code formatting and improve consistency across various test files
- Removed unnecessary blank lines in multiple test files to enhance readability. - Ensured consistent spacing and formatting in the `Trima`, `Usf`, `Vidya`, `Wma`, and `Atr` test classes. - Updated comments for clarity and consistency in the `Atr` and `Adl` classes. - Adjusted project files for better structure and maintainability.
This commit is contained in:
@@ -208,7 +208,7 @@ public class RmaTests
|
||||
{
|
||||
var source = new TSeries();
|
||||
var rma = new Rma(source, 10);
|
||||
|
||||
|
||||
source.Add(new TValue(DateTime.UtcNow, 100));
|
||||
Assert.Equal(100, rma.Last.Value, 1e-9);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public sealed class RmaValidationTests : IDisposable
|
||||
{
|
||||
// Arrange
|
||||
int period = 14;
|
||||
|
||||
|
||||
// QuanTAlib RMA
|
||||
var rma = new Rma(period);
|
||||
var quantalibResults = new TSeries();
|
||||
@@ -94,7 +94,7 @@ public sealed class RmaValidationTests : IDisposable
|
||||
// Skip warmup period for comparison
|
||||
int skip = period * 30;
|
||||
int itemsToVerify = _testData.Data.Count - skip;
|
||||
|
||||
|
||||
ValidationHelper.VerifyData(qResult, oValues, (s) => s, skip: itemsToVerify, tolerance: ValidationHelper.OoplesTolerance);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user