From 6d904bfcdae06a0fbd3f50fc4812cf7983f07381 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 01:08:39 +0000 Subject: [PATCH] style: format code with dotnet-format This commit fixes the style issues introduced in 14ec3cd according to the output from dotnet-format. Details: https://github.com/mihakralj/QuanTAlib/pull/35 --- Tests/test_eventing.cs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Tests/test_eventing.cs b/Tests/test_eventing.cs index 582517f7..02cd5ae0 100644 --- a/Tests/test_eventing.cs +++ b/Tests/test_eventing.cs @@ -51,29 +51,29 @@ public class EventingTests }; // Generate 200 random values and feed them to both direct and event-based indicators - for (int i = 0; i < 200; i++) + for (int i = 0; i< 200; i++) { double randomValue = GetRandomDouble(rng) * 100; - input.Add(randomValue); + input.Add(randomValue); // Calculate direct indicators foreach (var (direct, _) in indicators) { direct.Calc(randomValue); } - } +} - // Compare the results of direct and event-based calculations - foreach (var (direct, eventBased) in indicators) - { - Assert.Equal(direct.Value, eventBased.Value, 9); - } +// Compare the results of direct and event-based calculations +foreach (var (direct, eventBased) in indicators) +{ + Assert.Equal(direct.Value, eventBased.Value, 9); +} } private static double GetRandomDouble(RandomNumberGenerator rng) - { - byte[] bytes = new byte[8]; - rng.GetBytes(bytes); - return (double)BitConverter.ToUInt64(bytes, 0) / ulong.MaxValue; - } +{ + byte[] bytes = new byte[8]; + rng.GetBytes(bytes); + return (double)BitConverter.ToUInt64(bytes, 0) / ulong.MaxValue; +} }