Skip to content

Commit

Permalink
Update version test
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreffs committed Oct 20, 2024
1 parent dbf84e9 commit bd5948c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions Tests/SDLTests/SDLTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,14 @@ final class SDLTests: XCTestCase {
var linked = SDL_version()
SDL_GetVersion(&linked)

#if os(Linux)
XCTAssertEqual(compiled.major, 2)
XCTAssertEqual(compiled.major, linked.major)
#else
XCTAssertEqual(compiled.major, 2)
XCTAssertEqual(compiled.major, linked.major)
XCTAssertEqual(compiled.major, 2)
XCTAssertEqual(compiled.major, linked.major)

XCTAssertEqual(compiled.minor, 26)
XCTAssertEqual(compiled.minor, linked.minor)
XCTAssertGreaterThanOrEqual(compiled.minor, 0)
XCTAssertEqual(compiled.minor, linked.minor)

XCTAssertEqual(compiled.patch, 5)
XCTAssertEqual(compiled.patch, linked.patch)
#endif
XCTAssertGreaterThanOrEqual(compiled.patch, 0)
XCTAssertEqual(compiled.patch, linked.patch)
}

func testAPIAvailability() {
Expand Down

0 comments on commit bd5948c

Please sign in to comment.