// // MathTests.swift // MathTests // // Created by Eryn Wells on 10/28/15. // Copyright © 2015 Eryn Wells. All rights reserved. // import XCTest @testable import Math // MARK: - Matrix4 class Matrix4Tests: XCTestCase { func testThatItHasProperDimension() { XCTAssertEqual(Matrix4.dimension, 4) } func testThatItHasProperCount() { XCTAssertEqual(Matrix4.count, 16) XCTAssertEqual(Matrix4().data.count, Matrix4.count) } } class Matrix4SubscriptTests: XCTestCase { let values: [Float] = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] var m = Matrix4() override func setUp() { do { m = try Matrix4(values: values) } catch { XCTFail() } } func testThatSingleSubscriptWorks() { for i in 0..