Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hmG3 committed Feb 13, 2025
1 parent dc06eb7 commit 01df9ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
14 changes: 2 additions & 12 deletions tests/TALib.NETCore.Tests/FunctionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,7 @@ public void ShouldSucceedWhenDoubleInputSameOutput(TestDataModel<double> model,
var outputLength = model.Inputs[0].Length - inputOffset;
outputLength.ShouldBePositive("Output array should have the correct length");

var resultOutput = new double[model.Outputs.Length][];
resultOutput.Length.ShouldBe(function.Outputs.Length, "Number of outputs must match the definition");
for (var i = 0; i < resultOutput.Length; i++)
{
resultOutput[i] = new double[outputLength];
}
model.Outputs.Length.ShouldBe(function.Outputs.Length, "Number of outputs must match the definition");

if (model.Unstable.HasValue)
{
Expand Down Expand Up @@ -233,12 +228,7 @@ public void ShouldSucceedWhenFloatInputSameOutput(TestDataModel<float> model, st
var outputLength = model.Inputs[0].Length - inputOffset;
outputLength.ShouldBePositive("Output array should have the correct length");

var resultOutput = new float[model.Outputs.Length][];
resultOutput.Length.ShouldBe(function.Outputs.Length, "Number of outputs must match the definition");
for (var i = 0; i < resultOutput.Length; i++)
{
resultOutput[i] = new float[outputLength];
}
model.Outputs.Length.ShouldBe(function.Outputs.Length, "Number of outputs must match the definition");

if (model.Unstable.HasValue)
{
Expand Down
12 changes: 6 additions & 6 deletions tests/TALib.NETCore.Tests/TALib.NETCore.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="JunitXml.TestLogger" Version="5.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="Xunit.SkippableFact" Version="1.5.23" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Shouldly" Version="4.2.1" />
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
<PackageReference Include="Shouldly" Version="4.3.0" />
<PackageReference Include="coverlet.msbuild" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 01df9ff

Please sign in to comment.