using GLFW, Test

println(GLFW.GetVersionString())

# GLFWError uses enum for known error code
@test isa(GLFW.GLFWError(GLFW.NOT_INITIALIZED, "").code, GLFW.ErrorCode)
@test GLFW.GLFWError(0x00010001, "").code == GLFW.NOT_INITIALIZED

# GLFWError uses integer for unrecognized error code
@test isa(GLFW.GLFWError(0xDEADBEEF, "").code, Integer)

if !haskey(ENV, "CI")  # AppVeyor and Travis CI don't support OpenGL
	include("windowclose.jl")
end
