Skip to content

Commit

Permalink
Add refpointer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed Jan 19, 2017
1 parent 1a88aab commit bac5e30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/choosetests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function choosetests(choices = [])
"enums", "cmdlineargs", "i18n", "workspace", "libdl", "int",
"checked", "intset", "floatfuncs", "compile", "parallel", "inline",
"boundscheck", "error", "ambiguous", "cartesian", "asmvariant", "osutils",
"channels"
"channels", "refpointer"
]
profile_skipped = false
if startswith(string(Sys.ARCH), "arm")
Expand Down
7 changes: 7 additions & 0 deletions test/refpointer.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file is a part of Julia. License is MIT: http://julialang.org/license

x_notdefined = Ref{String}()
@test !isassigned(x_notdefined)

x_defined = Ref{String}("Test")
@test isassigned(x_defined)

0 comments on commit bac5e30

Please sign in to comment.