Skip to content

Commit

Permalink
[Tests] Reorganize files
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Jun 19, 2024
1 parent bb6bfd8 commit b703da9
Showing 12 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -22,7 +22,6 @@
</PropertyGroup>
<ItemGroup>
<None Include="paket.references" />
<Compile Include="RangeSet.fs" />
<None Include="Tuples_template.fs" />
<Compile Include="Tuples_auto.fs" />
<Compile Include="ActivePatterns.fs" />
Original file line number Diff line number Diff line change
@@ -18,20 +18,21 @@
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="data\test.jpg" />
<Compile Include="Math\MathTests.fs" />
<Compile Include="Math\TrafoTests.fs" />
<Compile Include="Math\SVDTests.fs" />
<Compile Include="Tensors\TensorTests.fs" />
<Compile Include="Tensors\TensorMathTests.fs" />
<Compile Include="Tensors\PixTests.fs" />
<Compile Include="Datastructures\RangeSetTests.fs" />
<Compile Include="Datastructures\SortedSetExt.fs" />
<Compile Include="Datastructures\MapExt.fs" />
<Compile Include="Datastructures\OrderMaintenanceTrie.fs" />
<Compile Include="EnumTests.fs" />
<Compile Include="MathTests.fs" />
<Compile Include="TrafoTests.fs" />
<Compile Include="TensorTests.fs" />
<Compile Include="TensorMathTests.fs" />
<Compile Include="PixTests.fs" />
<Compile Include="SVDTests.fs" />
<Compile Include="CachesTest.fs" />
<Compile Include="PureAgTests.fs" />
<Compile Include="NativeMemory.fs" />
<Compile Include="ControlTests.fs" />
<Compile Include="SortedSetExt.fs" />
<Compile Include="MapExt.fs" />
<Compile Include="OrderMaintenanceTrie.fs" />
<Compile Include="SizeOfTests.fs" />
<Compile Include="Program.fs" />
</ItemGroup>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Aardvark.Base.FSharp.Benchmarks
namespace Aardvark.Base.FSharp.Tests

open System
open Aardvark.Base
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
namespace Aardvark.Base.FSharp.Tests
#nowarn "44"

open System
open Aardvark.Base
@@ -48,7 +47,7 @@ module SortedSetNeighbours =
Console.WriteLine("iteration {0}: {1}", i, d.Count)

if remove && i > 200 then
let kvp = d |> Seq.nth (r.Next(d.Count))
let kvp = d |> Seq.item (r.Next(d.Count))
d.Remove kvp.Key |> should be True
values.Add kvp.Key |> should be True
content.Remove kvp.Key |> should be True
@@ -63,7 +62,7 @@ module SortedSetNeighbours =

()
else
let v = values |> Seq.nth (r.Next values.Count)
let v = values |> Seq.item (r.Next values.Count)
values.Remove v |> should be True

let l,s,r = d |> SortedDictionary.neighbourhood v

0 comments on commit b703da9

Please sign in to comment.