rename test project
This commit is contained in:
@@ -2,10 +2,10 @@ using System.Numerics;
|
||||
using Skeleton.Algebra.AffineSpaces;
|
||||
using Skeleton.Algebra.DimensionProviders;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test;
|
||||
|
||||
|
||||
using AffineC2Space = Skeleton.Algebra.CategoryOf<IDim2>.OnField<Complex>.FAffineSpace;
|
||||
using AffineC2Space = Algebra.CategoryOf<IDim2>.OnField<Complex>.FAffineSpace;
|
||||
public static class AffineSpaceTest
|
||||
{
|
||||
[Test]
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Numerics;
|
||||
using Skeleton.Algebra.Extensions;
|
||||
using Skeleton.Analysis.AnalyticFunctions.Polynomials.Implements;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class AlgebraMiscTest
|
||||
{
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Skeleton.DataStructure;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class CacheItemTest
|
||||
{
|
||||
@@ -161,5 +162,33 @@ public static class CacheItemTest
|
||||
Assert.That(a.BB.Get, Is.EqualTo(0));
|
||||
Assert.That(b.BA.Get, Is.EqualTo(1));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public static void Test4()
|
||||
{
|
||||
CacheItem<int> x = new CacheItem<int>(s => 1);
|
||||
CacheItem<int> w = new CacheItem<int>(a => x.GetFrom(a) + x.GetFrom(a));
|
||||
CacheItem<int> g = new CacheItem<int>(a => w.GetFrom(a) + w.GetFrom(a) + x.GetFrom(a));
|
||||
Assert.That(g.Get, Is.EqualTo(5));
|
||||
x.Assign(2);
|
||||
Console.WriteLine(g.Get);
|
||||
Assert.That(g.Get, Is.EqualTo(10));
|
||||
}
|
||||
[Test]
|
||||
public static void Test5()
|
||||
{
|
||||
CacheItem<int> x1 = new CacheItem<int>(x => 1);
|
||||
CacheItem<int> x2 = new CacheItem<int>(x => x1.GetFrom(x));
|
||||
CacheItem<int> x3 = new CacheItem<int>(x => x2.GetFrom(x));
|
||||
CacheItem<int> x4 = new CacheItem<int>(x => x3.GetFrom(x));
|
||||
|
||||
Console.WriteLine(x4.Get);
|
||||
x1.Assign(3);
|
||||
Assert.IsTrue(x2.Expired);
|
||||
Assert.IsTrue(x3.Expired);
|
||||
Assert.IsTrue(x4.Expired);
|
||||
Console.WriteLine(x4.Get);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ using Skeleton.Algebra.Extensions;
|
||||
using Skeleton.Samples;
|
||||
using Skeleton.Utils;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public class CayleySU3Test
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using Skeleton.Algebra.Extensions;
|
||||
using Skeleton.Samples;
|
||||
using Skeleton.Utils;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class CayleySU4Test
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@ using Skeleton.Algebra.Extensions;
|
||||
using Skeleton.Samples;
|
||||
using Skeleton.Utils;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class CayleyTransformationTest
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ using Skeleton.DataStructure.Packs.MatrixDecompositions;
|
||||
using Skeleton.Samples;
|
||||
using Skeleton.Utils;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class DecompositionTest
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public class DraftTest
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using Skeleton.Algebra.Extensions;
|
||||
using Skeleton.DataStructure.Packs.MatrixDecompositions;
|
||||
using Skeleton.Samples;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public class EigenDecompositionTest
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Numerics;
|
||||
using Skeleton.Algebra.Matrices;
|
||||
using Skeleton.Constants;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class EigenValueTest
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Skeleton.Algebra.ScalarFieldStructure;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class FieldStructureTest
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Numerics;
|
||||
using Skeleton.Samples;
|
||||
using Skeleton.Utils.Helpers;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class JordanPowerTest
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using Skeleton.Constants;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class LieSU3FastEigenValueTest
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Linq;
|
||||
using Skeleton.DataStructure.Link;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class LinkTest
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Skeleton.Constants;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class MatrixExpLogTest
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class MiscTest
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using Skeleton.Constants;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class MultiplicationTest
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Numerics;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Numerics;
|
||||
using Skeleton.Algebra.Extensions;
|
||||
using Skeleton.Constants;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class SUTestFix
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ using Skeleton.DataStructure.Packs.MatrixDecompositions;
|
||||
using Skeleton.Samples;
|
||||
using Skeleton.Utils;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class UnitaryMatrixFixTest
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using Skeleton.Samples;
|
||||
using Skeleton.Utils;
|
||||
using Skeleton.Utils.Helpers;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
public static class UnitaryTest
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
|
||||
namespace SkeletonTest.tests;
|
||||
namespace Skeleton.Test.tests;
|
||||
|
||||
/// <summary>
|
||||
/// test for vector spaces
|
||||
|
||||
Reference in New Issue
Block a user