Changeset 6900 for branches/GeneralizedQAP/HeuristicLab.Tests
- Timestamp:
- 10/11/11 12:12:02 (13 years ago)
- Location:
- branches/GeneralizedQAP
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP
- Property svn:ignore
-
old new 17 17 protoc.exe 18 18 HeuristicLab.ExtLibs.6.0.ReSharper.user 19 Doxygen
-
- Property svn:mergeinfo changed
/trunk/sources merged: 6879-6880,6882,6884,6887-6888,6891,6895
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis-3.4/StatisticCalculatorsTest.cs
r6878 r6900 22 22 using System.Collections.Generic; 23 23 using System.Linq; 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Problems.DataAnalysis; 25 26 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 60 61 { 61 62 for (int col = 0; col < cols; col++) { 62 double scale = random.NextDouble() * 1E7;63 double scale = random.NextDouble(); 63 64 IEnumerable<double> x = from rows in Enumerable.Range(0, n) 64 65 select testData[rows, col] * scale; … … 77 78 double variance = calculator.Variance; 78 79 79 Assert. AreEqual(mean_alglib.ToString(), mean.ToString());80 Assert. AreEqual(variance_alglib.ToString(), variance.ToString());80 Assert.IsTrue(mean_alglib.IsAlmost(mean)); 81 Assert.IsTrue(variance_alglib.IsAlmost(variance)); 81 82 } 82 83 } … … 108 109 double r2 = r2Calculator.RSquared; 109 110 110 Assert. AreEqual(r2_alglib.ToString(), r2.ToString());111 Assert.IsTrue(r2_alglib.IsAlmost(r2)); 111 112 } 112 113 } -
branches/GeneralizedQAP/HeuristicLab.Tests/HeuristicLab.Tests.csproj
r6889 r6900 38 38 <PropertyGroup> 39 39 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 40 </PropertyGroup> 41 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> 42 <DebugSymbols>true</DebugSymbols> 43 <OutputPath>bin\x64\Debug\</OutputPath> 44 <DefineConstants>DEBUG;TRACE</DefineConstants> 45 <DebugType>full</DebugType> 46 <PlatformTarget>x64</PlatformTarget> 47 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Tests.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 48 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 49 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 50 <ErrorReport>prompt</ErrorReport> 51 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 52 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 53 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 54 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 55 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 56 </PropertyGroup> 57 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> 58 <OutputPath>bin\x64\Release\</OutputPath> 59 <DefineConstants>TRACE</DefineConstants> 60 <Optimize>true</Optimize> 61 <DebugType>pdbonly</DebugType> 62 <PlatformTarget>x64</PlatformTarget> 63 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Tests.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 64 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 65 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 66 <ErrorReport>prompt</ErrorReport> 67 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 68 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 69 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 70 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 71 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 72 </PropertyGroup> 73 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> 74 <DebugSymbols>true</DebugSymbols> 75 <OutputPath>bin\x86\Debug\</OutputPath> 76 <DefineConstants>DEBUG;TRACE</DefineConstants> 77 <DebugType>full</DebugType> 78 <PlatformTarget>x86</PlatformTarget> 79 <CodeAnalysisLogFile>bin\Debug\HeuristicLab.Tests.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 80 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 81 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 82 <ErrorReport>prompt</ErrorReport> 83 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 84 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 85 <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets> 86 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 87 <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules> 88 </PropertyGroup> 89 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> 90 <OutputPath>bin\x86\Release\</OutputPath> 91 <DefineConstants>TRACE</DefineConstants> 92 <Optimize>true</Optimize> 93 <DebugType>pdbonly</DebugType> 94 <PlatformTarget>x86</PlatformTarget> 95 <CodeAnalysisLogFile>bin\Release\HeuristicLab.Tests.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile> 96 <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression> 97 <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile> 98 <ErrorReport>prompt</ErrorReport> 99 <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> 100 <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories> 101 <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories> 40 102 </PropertyGroup> 41 103 <ItemGroup> … … 171 233 <Compile Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4\ArgumentDuplicaterTest.cs" /> 172 234 <Compile Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4\ChangeNodeTypeManipulationTest.cs" /> 235 <Compile Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4\FullTreeCreatorTest.cs" /> 173 236 <Compile Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4\Grammars.cs" /> 237 <Compile Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4\GrowTreeCreatorTest.cs" /> 174 238 <Compile Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4\ProbabilisticTreeCreaterTest.cs" /> 175 239 <Compile Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4\ReplaceBranchManipulationTest.cs" />
Note: See TracChangeset
for help on using the changeset viewer.