Skip to content

Commit

Permalink
Enable IsNull test in UnboxAndOptionStuff() tests
Browse files Browse the repository at this point in the history
closes fsharp#452
  • Loading branch information
PatrickMcDonald authored and latkin committed May 19, 2015
1 parent 9bd876f commit 2044977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fsharp/FSharp.Core.Unittests/FSharp.Core/PrimTypes.fs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,8 @@ type UnboxAndOptionStuff() =
Assert.IsTrue( tryUnbox<int> (box 1) = Some 1)
Assert.IsTrue( tryUnbox<string> (box "") = Some "")
Assert.IsTrue( tryUnbox<string> (box 1) = None)


[<Test>]
member this.IsNull() =
Assert.IsTrue( isNull (null : string))
Assert.IsTrue( isNull (null : string[]))
Expand Down

0 comments on commit 2044977

Please sign in to comment.