Browse Source

Tests: disable de-CH related number format tests because of Win 8.1 bug

optimization-3
Christoph Ruegg 13 years ago
parent
commit
1b888c4d28
  1. 2
      src/UnitTests/ComplexTests/Complex32Test.TextHandling.cs
  2. 2
      src/UnitTests/ComplexTests/ComplexTest.TextHandling.cs
  3. 2
      src/UnitTests/LinearAlgebraTests/Complex/DenseVectorTest.TextHandling.cs
  4. 2
      src/UnitTests/LinearAlgebraTests/Complex/SparseVectorTest.TextHandling.cs
  5. 2
      src/UnitTests/LinearAlgebraTests/Complex32/DenseVectorTest.TextHandling.cs
  6. 2
      src/UnitTests/LinearAlgebraTests/Complex32/SparseVectorTest.TextHandling.cs
  7. 2
      src/UnitTests/LinearAlgebraTests/Double/DenseVectorTest.TextHandling.cs
  8. 2
      src/UnitTests/LinearAlgebraTests/Double/SparseVectorTest.TextHandling.cs
  9. 2
      src/UnitTests/LinearAlgebraTests/Single/DenseVectorTest.TextHandling.cs
  10. 2
      src/UnitTests/LinearAlgebraTests/Single/SparseVectorTest.TextHandling.cs

2
src/UnitTests/ComplexTests/Complex32Test.TextHandling.cs

@ -81,7 +81,7 @@ namespace MathNet.Numerics.UnitTests.ComplexTests
[TestCase("en-US", "1.1")]
[TestCase("tr-TR", "1,1")]
[TestCase("de-DE", "1,1")]
[TestCase("de-CH", "1.1")]
//[TestCase("de-CH", "1.1")] Windows 8.1 issue, see http://bit.ly/W81deCH
[TestCase("he-IL", "1.1")]
public void CanFormatComplexToStringWithCulture(string cultureName, string number)
{

2
src/UnitTests/ComplexTests/ComplexTest.TextHandling.cs

@ -50,7 +50,7 @@ namespace MathNet.Numerics.UnitTests.ComplexTests
/// <param name="expectedImaginary">Expected imaginary part.</param>
/// <param name="cultureName">Culture ID.</param>
[TestCase("-1 -2i", -1, -2, "en-US")]
[TestCase("-1 - 2i ", -1, -2, "de-CH")]
//[TestCase("-1 - 2i ", -1, -2, "de-CH")] Windows 8.1 issue, see http://bit.ly/W81deCH
public void CanParseStringToComplexWithCulture(string text, double expectedReal, double expectedImaginary, string cultureName)
{
var parsed = text.ToComplex(new CultureInfo(cultureName));

2
src/UnitTests/LinearAlgebraTests/Complex/DenseVectorTest.TextHandling.cs

@ -71,7 +71,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex
/// <param name="expectedToString">Expected result.</param>
/// <param name="culture">Culture name.</param>
[TestCase(" 1.2 + 1i , 3.4 + 1i , 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "en-US")]
[TestCase(" 1.2 + 1i ; 3.4 + 1i ; 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "de-CH")]
//[TestCase(" 1.2 + 1i ; 3.4 + 1i ; 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "de-CH")] Windows 8.1 issue, see http://bit.ly/W81deCH
#if !PORTABLE
[TestCase(" 1,2 + 1i ; 3,4 + 1i ; 5,6 + 1i ", "(1,2, 1) (3,4, 1) (5,6, 1)", "de-DE")]
#endif

2
src/UnitTests/LinearAlgebraTests/Complex/SparseVectorTest.TextHandling.cs

@ -70,7 +70,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex
/// <param name="expectedToString">Expected result.</param>
/// <param name="culture">Culture name.</param>
[TestCase(" 1.2 + 1i , 3.4 + 1i , 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "en-US")]
[TestCase(" 1.2 + 1i ; 3.4 + 1i ; 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "de-CH")]
//[TestCase(" 1.2 + 1i ; 3.4 + 1i ; 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "de-CH")] Windows 8.1 issue, see http://bit.ly/W81deCH
#if !PORTABLE
[TestCase(" 1,2 + 1i ; 3,4 + 1i ; 5,6 + 1i ", "(1,2, 1) (3,4, 1) (5,6, 1)", "de-DE")]
#endif

2
src/UnitTests/LinearAlgebraTests/Complex32/DenseVectorTest.TextHandling.cs

@ -71,7 +71,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32
/// <param name="expectedToString">Expected result.</param>
/// <param name="culture">Culture name.</param>
[TestCase(" 1.2 + 1i , 3.4 + 1i , 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "en-US")]
[TestCase(" 1.2 + 1i ; 3.4 + 1i ; 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "de-CH")]
//[TestCase(" 1.2 + 1i ; 3.4 + 1i ; 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "de-CH")] Windows 8.1 issue, see http://bit.ly/W81deCH
#if !PORTABLE
[TestCase(" 1,2 + 1i ; 3,4 + 1i ; 5,6 + 1i ", "(1,2, 1) (3,4, 1) (5,6, 1)", "de-DE")]
#endif

2
src/UnitTests/LinearAlgebraTests/Complex32/SparseVectorTest.TextHandling.cs

@ -70,7 +70,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32
/// <param name="expectedToString">Expected result.</param>
/// <param name="culture">Culture name.</param>
[TestCase(" 1.2 + 1i , 3.4 + 1i , 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "en-US")]
[TestCase(" 1.2 + 1i ; 3.4 + 1i ; 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "de-CH")]
//[TestCase(" 1.2 + 1i ; 3.4 + 1i ; 5.6 + 1i ", "(1.2, 1) (3.4, 1) (5.6, 1)", "de-CH")] Windows 8.1 issue, see http://bit.ly/W81deCH
#if !PORTABLE
[TestCase(" 1,2 + 1i ; 3,4 + 1i ; 5,6 + 1i ", "(1,2, 1) (3,4, 1) (5,6, 1)", "de-DE")]
#endif

2
src/UnitTests/LinearAlgebraTests/Double/DenseVectorTest.TextHandling.cs

@ -67,7 +67,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Double
/// <param name="expectedToString">Expected result.</param>
/// <param name="culture">Culture name.</param>
[TestCase(" 1.2,3.4 , 5.6 ", "1.2 3.4 5.6", "en-US")]
[TestCase(" 1.2;3.4 ; 5.6 ", "1.2 3.4 5.6", "de-CH")]
//[TestCase(" 1.2;3.4 ; 5.6 ", "1.2 3.4 5.6", "de-CH")] Windows 8.1 issue, see http://bit.ly/W81deCH
[TestCase(" 1,2;3,4 ; 5,6 ", "1,2 3,4 5,6", "de-DE")]
public void CanParseDoubleDenseVectorsWithCulture(string stringToParse, string expectedToString, string culture)
{

2
src/UnitTests/LinearAlgebraTests/Double/SparseVectorTest.TextHandling.cs

@ -66,7 +66,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Double
/// <param name="expectedToString">Expected result.</param>
/// <param name="culture">Culture name.</param>
[TestCase(" 1.2,3.4 , 5.6 ", "1.2 3.4 5.6", "en-US")]
[TestCase(" 1.2;3.4 ; 5.6 ", "1.2 3.4 5.6", "de-CH")]
//[TestCase(" 1.2;3.4 ; 5.6 ", "1.2 3.4 5.6", "de-CH")] Windows 8.1 issue, see http://bit.ly/W81deCH
[TestCase(" 1,2;3,4 ; 5,6 ", "1,2 3,4 5,6", "de-DE")]
public void CanParseDoubleSparseVectorsWithCulture(string stringToParse, string expectedToString, string culture)
{

2
src/UnitTests/LinearAlgebraTests/Single/DenseVectorTest.TextHandling.cs

@ -67,7 +67,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
/// <param name="expectedToString">Expected result.</param>
/// <param name="culture">Culture name.</param>
[TestCase(" 1.2,3.4 , 5.6 ", "1.2 3.4 5.6", "en-US")]
[TestCase(" 1.2;3.4 ; 5.6 ", "1.2 3.4 5.6", "de-CH")]
//[TestCase(" 1.2;3.4 ; 5.6 ", "1.2 3.4 5.6", "de-CH")] Windows 8.1 issue, see http://bit.ly/W81deCH
[TestCase(" 1,2;3,4 ; 5,6 ", "1,2 3,4 5,6", "de-DE")]
public void CanParseSingleDenseVectorsWithCulture(string stringToParse, string expectedToString, string culture)
{

2
src/UnitTests/LinearAlgebraTests/Single/SparseVectorTest.TextHandling.cs

@ -66,7 +66,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
/// <param name="expectedToString">Expected result.</param>
/// <param name="culture">Culture name.</param>
[TestCase(" 1.2,3.4 , 5.6 ", "1.2 3.4 5.6", "en-US")]
[TestCase(" 1.2;3.4 ; 5.6 ", "1.2 3.4 5.6", "de-CH")]
//[TestCase(" 1.2;3.4 ; 5.6 ", "1.2 3.4 5.6", "de-CH")] Windows 8.1 issue, see http://bit.ly/W81deCH
[TestCase(" 1,2;3,4 ; 5,6 ", "1,2 3,4 5,6", "de-DE")]
public void CanParseSingleSparseVectorsWithCulture(string stringToParse, string expectedToString, string culture)
{

Loading…
Cancel
Save