Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit58981ec

Browse files
committed
Test fix: explicitly set culture when validating number formatting
fixesdotnet#107 (changeset 1404356)
1 parent7e47ae1 commit58981ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎tests/fsharp/core/measures/test.fsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,12 @@ module MembersTest =
504504
lets=2.0f<kg>
505505
letd=2.0M<kg>
506506

507+
lettmpCulture= System.Threading.Thread.CurrentThread.CurrentCulture
508+
System.Threading.Thread.CurrentThread.CurrentCulture<- System.Globalization.CultureInfo("en-US")
507509
test"f"(f.ToString().Equals("2"))
508510
test"s"(s.ToString().Equals("2"))
509511
test"d"(d.ToString().Equals("2.0"))
512+
System.Threading.Thread.CurrentThread.CurrentCulture<- tmpCulture
510513

511514
letfc=(f:> System.IComparable<float<kg>>).CompareTo(f+f)
512515
letsc=(s:> System.IComparable<float32<kg>>).CompareTo(s+s)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp