diff --git a/src/System.Numerics.Vectors/tests/Vector4Tests.cs b/src/System.Numerics.Vectors/tests/Vector4Tests.cs index 8584c6879d8e..78f5e5d8f5cd 100644 --- a/src/System.Numerics.Vectors/tests/Vector4Tests.cs +++ b/src/System.Numerics.Vectors/tests/Vector4Tests.cs @@ -72,7 +72,7 @@ public void Vector4ToStringTest() Assert.Equal("<$2.50, $2.00, $3.00, $3.30>", v1strformatted); string v2strformatted = v1.ToString("c"); - Assert.Equal("<$2.50, $2.00, $3.00, $3.30>", v1strformatted); + Assert.Equal(string.Format("<{0:C}, {1:C}, {2:C}, {3:C}>", 2.5, 2, 3, 3.3), v2strformatted); } // A test for DistanceSquared (Vector4f, Vector4f)