Skip to content

Commit

Permalink
More tests for osnames (#18121)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9fd79ef)
  • Loading branch information
kshyatt authored and tkelman committed Aug 20, 2016
1 parent 51aadfe commit ac9627c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,15 @@ end
@test isa(ex, ErrorException) && ex.msg == "cannot assign variables in other modules"
end

@test !Base.is_unix(:Windows)
@test !Base.is_linux(:Windows)
@test Base.is_linux(:Linux)
@test Base.is_windows(:Windows)
@test Base.is_windows(:NT)
@test !Base.is_windows(:Darwin)
@test Base.is_apple(:Darwin)
@test Base.is_apple(:Apple)
@test !Base.is_apple(:Windows)
@test Base.is_unix(:Darwin)
@test Base.is_unix(:FreeBSD)
@test_throws ArgumentError Base.is_unix(:BeOS)
Expand Down

0 comments on commit ac9627c

Please sign in to comment.