зеркало из https://github.com/App-vNext/corefx.git
Fix vector tests to work on non en-US culture machines
This commit is contained in:
Родитель
b6b1bccffb
Коммит
5ec20d06b8
|
@ -67,7 +67,7 @@ namespace System.Numerics.Tests
|
|||
Assert.Equal("<$2.00, $3.00>", v1strformatted);
|
||||
|
||||
string v2strformatted = v1.ToString("c");
|
||||
Assert.Equal("<$2.00, $3.00>", v2strformatted);
|
||||
Assert.Equal(string.Format("<{0:C}, {1:C}>", 2, 3), v2strformatted);
|
||||
}
|
||||
|
||||
// A test for Distance (Vector2f, Vector2f)
|
||||
|
|
|
@ -70,7 +70,8 @@ namespace System.Numerics.Tests
|
|||
Assert.Equal("<$2.00, $3.00, $3.30>", v1strformatted);
|
||||
|
||||
string v2strformatted = v1.ToString("c");
|
||||
Assert.Equal("<$2.00, $3.00, $3.30>", v2strformatted);
|
||||
|
||||
Assert.Equal(string.Format("<{0:C}, {1:C}, {2:C}>", 2, 3, 3.3), v2strformatted);
|
||||
}
|
||||
|
||||
// A test for Cross (Vector3f, Vector3f)
|
||||
|
|
Загрузка…
Ссылка в новой задаче