Rename because it is ordered
This commit is contained in:
parent
b5b363ae9f
commit
e3cec3423b
28 changed files with 104 additions and 104 deletions
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
using PersistentMap;
|
||||
using PersistentOrderedMap;
|
||||
|
||||
public class BTreeFuzzTests
|
||||
{
|
||||
|
|
@ -137,7 +137,7 @@ public class BTreeFuzzTests
|
|||
}
|
||||
}
|
||||
|
||||
private void AssertConsistency(SortedDictionary<int, int> expected, TransientMap<int, int, IntStrategy> actual)
|
||||
private void AssertConsistency(SortedDictionary<int, int> expected, TransientOrderedMap<int, int, IntStrategy> actual)
|
||||
{
|
||||
// 1. Count
|
||||
if (expected.Count != actual.Count)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
using PersistentMap;
|
||||
using PersistentOrderedMap;
|
||||
|
||||
public class BTreeFuzzTestStandardStrategy
|
||||
{
|
||||
|
|
@ -137,7 +137,7 @@ public class BTreeFuzzTestStandardStrategy
|
|||
}
|
||||
}
|
||||
|
||||
private void AssertConsistency(SortedDictionary<int, int> expected, TransientMap<int, int, StandardStrategy<int>> actual)
|
||||
private void AssertConsistency(SortedDictionary<int, int> expected, TransientOrderedMap<int, int, StandardStrategy<int>> actual)
|
||||
{
|
||||
// 1. Count
|
||||
if (expected.Count != actual.Count)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
using Xunit;
|
||||
using PersistentMap;
|
||||
using PersistentOrderedMap;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
|
@ -8,8 +8,8 @@ public class EnumeratorTests
|
|||
// Use IntStrategy for simple numeric testing
|
||||
private readonly IntStrategy _strategy = new();
|
||||
|
||||
// Helper to create a populated PersistentMap quickly
|
||||
private PersistentMap<int, int, IntStrategy> CreateMap(params int[] keys)
|
||||
// Helper to create a populated PersistentOrderedMap quickly
|
||||
private PersistentOrderedMap<int, int, IntStrategy> CreateMap(params int[] keys)
|
||||
{
|
||||
var map = BaseOrderedMap<int, int, IntStrategy>.CreateTransient(_strategy);
|
||||
foreach (var k in keys)
|
||||
|
|
@ -22,7 +22,7 @@ public class EnumeratorTests
|
|||
[Fact]
|
||||
public void EmptyMap_EnumeratesNothing()
|
||||
{
|
||||
var map = PersistentMap<int, int, IntStrategy>.Empty(_strategy);
|
||||
var map = PersistentOrderedMap<int, int, IntStrategy>.Empty(_strategy);
|
||||
var list = new List<int>();
|
||||
|
||||
foreach(var kv in map) list.Add(kv.Key);
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
using System.Linq;
|
||||
using Xunit;
|
||||
using PersistentMap;
|
||||
using PersistentOrderedMap;
|
||||
|
||||
namespace PersistentMap.Tests
|
||||
{
|
||||
public class BTreeExtendedOperationsTests
|
||||
{
|
||||
// Helper to quickly spin up a populated map
|
||||
private TransientMap<int, string, IntStrategy> CreateMap(params int[] keys)
|
||||
private TransientOrderedMap<int, string, IntStrategy> CreateMap(params int[] keys)
|
||||
{
|
||||
var map = BaseOrderedMap<int, string, IntStrategy>.CreateTransient(new IntStrategy());
|
||||
foreach (var key in keys)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
namespace TestProject1;
|
||||
using PersistentMap;
|
||||
using PersistentOrderedMap;
|
||||
public class PersistenceTests
|
||||
{
|
||||
private readonly UnicodeStrategy _strategy = new UnicodeStrategy();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
namespace PersistentMap.Tests;
|
||||
using PersistentMap;
|
||||
using PersistentOrderedMap;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
public class StandardStrategy
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace TestProject1;
|
||||
|
||||
using PersistentMap;
|
||||
using PersistentOrderedMap;
|
||||
|
||||
public class StressTests
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PersistentMap\PersistentMap.csproj" />
|
||||
<ProjectReference Include="..\PersistentOrderedMap\PersistentOrderedMap.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
namespace TestProject1;
|
||||
|
||||
using Xunit;
|
||||
using PersistentMap;
|
||||
using PersistentOrderedMap;
|
||||
|
||||
public class BasicTests
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue