Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing JaroWinkler tests with InvariantCulture and fixing async tests by removing Debugger.Break() #3627

Merged
merged 2 commits into from
Sep 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/fsharp/FSharp.Compiler.Unittests/EditDistance.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace FSharp.Compiler.Unittests

open System
open System.Globalization
open System.Text
open NUnit.Framework
open Microsoft.FSharp.Compiler
Expand All @@ -16,7 +17,7 @@ module EditDistance =
[<TestCase("DWAYNE", "DUANE", ExpectedResult = "0.840")>]
[<TestCase("DIXON", "DICKSONX", ExpectedResult = "0.813")>]
let JaroWinklerTest (str1 : string, str2 : string) : string =
String.Format("{0:0.000}", JaroWinklerDistance str1 str2)
String.Format(CultureInfo.InvariantCulture, "{0:0.000}", JaroWinklerDistance str1 str2)

[<Test>]
[<TestCase("RICK", "RICK", ExpectedResult = 0)>]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ type AsyncType() =
match a.InnerException with
| :? TaskCanceledException as t -> ()
| _ -> reraise()
System.Diagnostics.Debugger.Break() |> ignore
Assert.IsTrue (t.IsCompleted, "Task is not completed")

[<Test>]
Expand Down Expand Up @@ -408,4 +407,4 @@ type AsyncType() =
cts.Cancel()
ewh.WaitOne(10000) |> ignore

#endif
#endif