Skip to content

Commit

Permalink
Tests for OS symbols and windows versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Nov 14, 2015
1 parent e17b4bd commit fc1c9be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,8 @@ catch ex
end
@test isa(ex, ErrorException) && ex.msg == "cannot assign variables in other modules"
end

@test Base.is_unix(:Darwin)
@test Base.is_unix(:FreeBSD)
@test_throws ArgumentError Base.is_unix(:BeOS)
@unix_only @test Base.windows_version() == (0,0)

0 comments on commit fc1c9be

Please sign in to comment.