// // MatrixXT.swift // MatrixXT // // Created by Jacky Jack on 21/10/2024. // import Testing struct MatrixXT { @Test func example() async throws { // Write your test here and use APIs like `#expect(...)` to check expected conditions. } @Test func matrix_create_with_init() async throws { do { let _ = try Matrix(rows:-1,columns: -1,val:0.0) Issue.record("Should fail") } catch { //should allway get here, } do { let _ = try Matrix(rows: 0, columns: 0, val: 0.0) Issue.record("Should fail") } catch { //should allways get here } do { let _ = try Matrix(rows: 1, columns: 1, val: 0.0) } catch { Issue.record("Failed") } do { let _ = try Matrix(rows: 2, columns: 2, val: 0.0) } catch { Issue.record("Failed") } do { let _ = try Matrix(rows: 3, columns: 3, val: 0.0) } catch { Issue.record("Failed") } do { let _ = try Matrix(rows:16, columns: 16, val: 0.0) } catch { Issue.record("Failed") } } }