未验证 提交 1e28943d 编写于 作者: D devsko 提交者: GitHub

Fix test (#51729)

上级 af71fcca
......@@ -60,7 +60,7 @@ public static void VerifyPrimitives()
double dbl = (double)obj;
#if !BUILDING_INBOX_LIBRARY
string temp = dbl.ToString();
string temp = dbl.ToString(System.Globalization.CultureInfo.InvariantCulture);
// The reader uses "G17" format which causes temp to be 4.2000000000000002 in this case.
dbl = double.Parse(temp, System.Globalization.CultureInfo.InvariantCulture);
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册