Skip to content

Commit f320958

Browse files
forkidsyme
authored andcommitted
Deleting unused method from test suite (#1531)
1 parent e7d09b2 commit f320958

File tree

1 file changed

+1
-8
lines changed
  • src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Collections

1 file changed

+1
-8
lines changed

src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Collections/ArrayModule.fs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ Make sure each method works on:
2121
[<TestFixture>]
2222
type ArrayModule() =
2323

24-
let rec IsNaN (x : obj) =
25-
match x with
26-
| :? float as x -> Double.IsNaN(x)
27-
| :? float32 as x -> Single.IsNaN(x)
28-
| :? decimal as x -> Decimal.ToDouble(x) |> box |> IsNaN
29-
| _ -> failwith "Invalid input. Please provide a numeric type which could possibly be NaN"
30-
3124
[<Test>]
3225
member this.Empty() =
3326
let emptyArray = Array.empty
@@ -400,7 +393,7 @@ type ArrayModule() =
400393
if intChoosed.[1] <> 10 then Assert.Fail()
401394

402395
// string array
403-
let stringSrc: string [] = "Lists are a commonly used data structure. They are not mutable, i.e., you can't delete an element of a list – instead you create a new list with the element deleted. List values often share storage under the hood, i.e., a list value only allocate more memory when you actually execute construction operations.".Split([|' '|], System.StringSplitOptions.RemoveEmptyEntries)
396+
let stringSrc: string [] = "Lists are a commonly used data structure. They are not mutable, i.e., you can't delete an element of a list – instead you create a new list with the element deleted. List values often share storage under the hood, i.e., a list value only allocate more memory when you actually execute construction operations.".Split([|' '|], System.StringSplitOptions.RemoveEmptyEntries)
404397
let funcString x = match x with
405398
| "list"-> Some x
406399
| "List" -> Some x

0 commit comments

Comments
 (0)