mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
23 lines
429 B
Odin
23 lines
429 B
Odin
#+build darwin, windows
|
|
package test_vendor_glfw
|
|
|
|
import "core:testing"
|
|
import "vendor:glfw"
|
|
|
|
GLFW_MAJOR :: 3
|
|
GLFW_MINOR :: 4
|
|
GLFW_PATCH :: 0
|
|
|
|
@(test)
|
|
test_glfw :: proc(t: ^testing.T) {
|
|
major, minor, patch := glfw.GetVersion()
|
|
testing.expectf(
|
|
t,
|
|
major == GLFW_MAJOR && \
|
|
minor == GLFW_MINOR,
|
|
"Expected GLFW.GetVersion: %v.%v.%v, got %v.%v.%v instead",
|
|
GLFW_MAJOR, GLFW_MINOR, GLFW_PATCH,
|
|
major, minor, patch,
|
|
)
|
|
}
|