提交 f3209585 编写于 作者: S Steffen Forkmann 提交者: Don Syme

Deleting unused method from test suite (#1531)

上级 e7d09b2e
......@@ -21,13 +21,6 @@ Make sure each method works on:
[<TestFixture>]
type ArrayModule() =
let rec IsNaN (x : obj) =
match x with
| :? float as x -> Double.IsNaN(x)
| :? float32 as x -> Single.IsNaN(x)
| :? decimal as x -> Decimal.ToDouble(x) |> box |> IsNaN
| _ -> failwith "Invalid input. Please provide a numeric type which could possibly be NaN"
[<Test>]
member this.Empty() =
let emptyArray = Array.empty
......@@ -400,7 +393,7 @@ type ArrayModule() =
if intChoosed.[1] <> 10 then Assert.Fail()
// string array
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)
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)
let funcString x = match x with
| "list"-> Some x
| "List" -> Some x
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册