Skip to content

Commit

Permalink
Seed initial test target.
Browse files Browse the repository at this point in the history
  • Loading branch information
BradLarson committed Feb 17, 2024
1 parent 8205b4f commit 0d39216
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ let package = Package(
.target(
name: "GPUImage",
resources: [.process("Resources")]
)
),
.testTarget(
name: "GPUImageTests",
dependencies: ["GPUImage"]),
]
)
16 changes: 16 additions & 0 deletions Tests/GPUImageTests/MatrixTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import XCTest
@testable import GPUImage

final class MatrixTests: XCTestCase {
func testMatrix3x3() throws {
let newMatrix = Matrix3x3(rowMajorValues: [
1.0, 2.0, 3.0,
4.0, 5.0, 6.0,
7.0, 8.0, 9.0
])

XCTAssertEqual(newMatrix.m11, 1.0)
XCTAssertEqual(newMatrix.m23, 6.0)
XCTAssertEqual(newMatrix.m32, 8.0)
}
}

0 comments on commit 0d39216

Please sign in to comment.