rename test project

This commit is contained in:
h z
2024-07-10 15:43:44 +01:00
parent d37b9957b0
commit a922a8971e
37 changed files with 150 additions and 28 deletions

13
.idea/.idea.Skeleton.Test/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/projectSettingsUpdater.xml
/.idea.Skeleton.Test.iml
/modules.xml
/contentModel.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

7
.idea/.idea.Skeleton.Test/.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/../Skeleton" vcs="Git" />
</component>
</project>

13
.idea/.idea.SkeletonTest.dir/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/.idea.SkeletonTest.iml
/contentModel.xml
/modules.xml
/projectSettingsUpdater.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

13
.idea/.idea.SkeletonTest/.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/contentModel.xml
/projectSettingsUpdater.xml
/.idea.SkeletonTest.iml
/modules.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

7
.idea/.idea.SkeletonTest/.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../Skeleton" vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@@ -1,5 +1,5 @@
sed -i '/^Project.*"Skeleton".*/d' ./SkeletonTest.sln sed -i '/^Project.*"Skeleton".*/d' ./Skeleton.Test.sln
sed -i '/^EndProject$/d' ./SkeletonTest.sln sed -i '/^EndProject$/d' ./Skeleton.Test.sln
sed -i '/^Project.*/aEndProject' ./SkeletonTest.sln sed -i '/^Project.*/aEndProject' ./Skeleton.Test.sln
sed -i '/.*ProjectReference.*/d' ./SkeletonTest.csproj sed -i '/.*ProjectReference.*/d' ./Skeleton.Test.csproj

View File

@@ -5,6 +5,7 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -1,6 +1,6 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkeletonTest", "SkeletonTest.csproj", "{58767D91-4AE1-43EB-9DBC-498EE84DE6AC}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Skeleton.Test", "Skeleton.Test.csproj", "{58767D91-4AE1-43EB-9DBC-498EE84DE6AC}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Skeleton", "..\Skeleton\Skeleton.csproj", "{61DBA845-169F-473E-B084-09B6A0E3762C}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Skeleton", "..\Skeleton\Skeleton.csproj", "{61DBA845-169F-473E-B084-09B6A0E3762C}"
EndProject EndProject

View File

@@ -0,0 +1,7 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=996f1696_002D38c8_002D48d8_002Da948_002Ddaa24c1498f3/@EntryIndexedValue">&lt;SessionState ContinuousTestingMode="0" IsActive="True" Name="All tests from Solution" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session"&gt;
&lt;Solution /&gt;
&lt;/SessionState&gt;</s:String>
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=d01aff50_002D0713_002D48c1_002Da4de_002Da093a716f694/@EntryIndexedValue">&lt;SessionState ContinuousTestingMode="0" Name="All tests from &amp;lt;Skeleton.Test&amp;gt;" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session"&gt;
&lt;Project Location="/home/hzhang/RiderProjects/Marshmallow/Skeleton.Test" Presentation="&amp;lt;Skeleton.Test&amp;gt;" /&gt;
&lt;/SessionState&gt;</s:String></wpf:ResourceDictionary>

View File

@@ -0,0 +1,4 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=57175bc5_002D3ffe_002D4664_002D9725_002D1923c035c70a/@EntryIndexedValue">&lt;SessionState ContinuousTestingMode="0" IsActive="True" Name="All tests from &amp;lt;SkeletonTest&amp;gt;" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session"&gt;
&lt;Project Location="/home/hzhang/RiderProjects/SkeletonTest" Presentation="&amp;lt;SkeletonTest&amp;gt;" /&gt;
&lt;/SessionState&gt;</s:String></wpf:ResourceDictionary>

View File

@@ -2,10 +2,10 @@ using System.Numerics;
using Skeleton.Algebra.AffineSpaces; using Skeleton.Algebra.AffineSpaces;
using Skeleton.Algebra.DimensionProviders; 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 public static class AffineSpaceTest
{ {
[Test] [Test]

View File

@@ -4,7 +4,7 @@ using System.Numerics;
using Skeleton.Algebra.Extensions; using Skeleton.Algebra.Extensions;
using Skeleton.Analysis.AnalyticFunctions.Polynomials.Implements; using Skeleton.Analysis.AnalyticFunctions.Polynomials.Implements;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class AlgebraMiscTest public static class AlgebraMiscTest
{ {

View File

@@ -1,8 +1,9 @@
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using Skeleton.DataStructure; using Skeleton.DataStructure;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class CacheItemTest public static class CacheItemTest
{ {
@@ -161,5 +162,33 @@ public static class CacheItemTest
Assert.That(a.BB.Get, Is.EqualTo(0)); Assert.That(a.BB.Get, Is.EqualTo(0));
Assert.That(b.BA.Get, Is.EqualTo(1)); 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);
}
} }

View File

@@ -5,7 +5,7 @@ using Skeleton.Algebra.Extensions;
using Skeleton.Samples; using Skeleton.Samples;
using Skeleton.Utils; using Skeleton.Utils;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public class CayleySU3Test public class CayleySU3Test
{ {

View File

@@ -5,7 +5,7 @@ using Skeleton.Algebra.Extensions;
using Skeleton.Samples; using Skeleton.Samples;
using Skeleton.Utils; using Skeleton.Utils;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class CayleySU4Test public static class CayleySU4Test
{ {

View File

@@ -4,7 +4,7 @@ using Skeleton.Algebra.Extensions;
using Skeleton.Samples; using Skeleton.Samples;
using Skeleton.Utils; using Skeleton.Utils;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class CayleyTransformationTest public static class CayleyTransformationTest
{ {

View File

@@ -7,7 +7,7 @@ using Skeleton.DataStructure.Packs.MatrixDecompositions;
using Skeleton.Samples; using Skeleton.Samples;
using Skeleton.Utils; using Skeleton.Utils;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class DecompositionTest public static class DecompositionTest
{ {

View File

@@ -1,4 +1,4 @@
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public class DraftTest public class DraftTest
{ {

View File

@@ -5,7 +5,7 @@ using Skeleton.Algebra.Extensions;
using Skeleton.DataStructure.Packs.MatrixDecompositions; using Skeleton.DataStructure.Packs.MatrixDecompositions;
using Skeleton.Samples; using Skeleton.Samples;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public class EigenDecompositionTest public class EigenDecompositionTest
{ {

View File

@@ -3,7 +3,7 @@ using System.Numerics;
using Skeleton.Algebra.Matrices; using Skeleton.Algebra.Matrices;
using Skeleton.Constants; using Skeleton.Constants;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class EigenValueTest public static class EigenValueTest
{ {

View File

@@ -1,6 +1,6 @@
using Skeleton.Algebra.ScalarFieldStructure; using Skeleton.Algebra.ScalarFieldStructure;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class FieldStructureTest public static class FieldStructureTest
{ {

View File

@@ -3,7 +3,7 @@ using System.Numerics;
using Skeleton.Samples; using Skeleton.Samples;
using Skeleton.Utils.Helpers; using Skeleton.Utils.Helpers;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class JordanPowerTest public static class JordanPowerTest
{ {

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Numerics; using System.Numerics;
using Skeleton.Constants; using Skeleton.Constants;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class LieSU3FastEigenValueTest public static class LieSU3FastEigenValueTest
{ {

View File

@@ -2,7 +2,7 @@ using System;
using System.Linq; using System.Linq;
using Skeleton.DataStructure.Link; using Skeleton.DataStructure.Link;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class LinkTest public static class LinkTest
{ {

View File

@@ -1,6 +1,6 @@
using Skeleton.Constants; using Skeleton.Constants;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class MatrixExpLogTest public static class MatrixExpLogTest
{ {

View File

@@ -1,6 +1,6 @@
using System; using System;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class MiscTest public static class MiscTest
{ {

View File

@@ -1,7 +1,7 @@
using System; using System;
using Skeleton.Constants; using Skeleton.Constants;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class MultiplicationTest public static class MultiplicationTest
{ {

View File

@@ -1,7 +1,7 @@
using System; using System;
using System.Numerics; using System.Numerics;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
/// <summary> /// <summary>
/// ///

View File

@@ -3,7 +3,7 @@ using System.Numerics;
using Skeleton.Algebra.Extensions; using Skeleton.Algebra.Extensions;
using Skeleton.Constants; using Skeleton.Constants;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class SUTestFix public static class SUTestFix
{ {

View File

@@ -7,7 +7,7 @@ using Skeleton.DataStructure.Packs.MatrixDecompositions;
using Skeleton.Samples; using Skeleton.Samples;
using Skeleton.Utils; using Skeleton.Utils;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class UnitaryMatrixFixTest public static class UnitaryMatrixFixTest
{ {

View File

@@ -5,7 +5,7 @@ using Skeleton.Samples;
using Skeleton.Utils; using Skeleton.Utils;
using Skeleton.Utils.Helpers; using Skeleton.Utils.Helpers;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
public static class UnitaryTest public static class UnitaryTest
{ {

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Numerics; using System.Numerics;
namespace SkeletonTest.tests; namespace Skeleton.Test.tests;
/// <summary> /// <summary>
/// test for vector spaces /// test for vector spaces