@@ -21,13 +21,6 @@ Make sure each method works on:
[<TestFixture>]
typeArrayModule()=
letrecIsNaN(x:obj)=
matchxwith
|:?floatasx->Double.IsNaN(x)
|:?float32asx->Single.IsNaN(x)
|:?decimalasx->Decimal.ToDouble(x)|>box|>IsNaN
|_->failwith"Invalid input. Please provide a numeric type which could possibly be NaN"
[<Test>]
memberthis.Empty()=
letemptyArray=Array.empty
...
...
@@ -400,7 +393,7 @@ type ArrayModule() =
ifintChoosed.[1]<>10thenAssert.Fail()
// string array
letstringSrc: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)
letstringSrc: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)