Revision 4aeb2d499686beab0e66978e8719357387dc1b25 authored by Fabian R Lischka on 26 April 2017, 16:28:44 UTC, committed by Tony Kelman on 26 April 2017, 16:28:44 UTC
* add docstring to base/Dates, base/Pkg

* use jldoctest, backticks, clean up, typos

* add module name on first line of docstring

* add space after comma in tuples (as in 0.6)

* add link to ISO 8601 wikipedia
1 parent 53161af
Raw File
osutils.jl
# This file is a part of Julia. License is MIT: https://julialang.org/license

@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)
if !is_windows()
    @test Sys.windows_version() === (0, 0)
else
    @test (Sys.windows_version()::Tuple{Int,Int})[1] > 0
end

@test (@static true ? 1 : 2) === 1
@test (@static false ? 1 : 2) === 2
@test (@static if true 1 end) === 1
@test (@static if false 1 end) === nothing
@test (@static true && 1) === 1
@test (@static false && 1) === false
@test (@static true || 1) === true
@test (@static false || 1) === 1
back to top