DTLib/DTLib.Tests/Dtsod/TestAutoarr.cs
2023-02-12 18:45:05 +06:00

40 lines
1.0 KiB
C#

/*
using KerepWrapper.Autoarr;
using KerepWrapper.KerepTypes;
namespace DTLib.Tests;
public static class TestAutoarr
{
public static void TestAll()
{
var ar = new Autoarr<KVPair>(4, 4, false);
Fill(ar);
Print(ar);
Free(ar);
}
public static void Fill(Autoarr<KVPair> ar)
{
OldLogger.Log("c", "----------[TestAutoarr/Fill]----------");
for(uint i=0;i<ar.MaxLength;i++)
ar.Add(new KVPair($"key_{i}",new Unitype(i)));
OldLogger.Log("g", "test completed");
}
public static void Print(Autoarr<KVPair> ar)
{
OldLogger.Log("c", "----------[TestAutoarr/Print]---------");
foreach (KVPair pair in ar)
OldLogger.Log("h", pair.ToString());
OldLogger.Log("g", "test completed");
}
public static void Free(Autoarr<KVPair> ar)
{
OldLogger.Log("c", "----------[TestAutoarr/Free]----------");
ar.Dispose();
OldLogger.Log("g", "test completed");
}
}
*/