diff options
author | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2024-10-25 10:29:54 +0100 |
---|---|---|
committer | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2024-10-25 10:29:54 +0100 |
commit | f3f0f90a51412d1684b43be6f2b5f93cb4154ee0 (patch) | |
tree | ac8c4df68d9d1046bd438abe3d6a258e48e95cf2 /LA/Test/MatrixXT | |
parent | 8f8f78cd00d3b5e5ce5076d316f2499df35d532f (diff) | |
download | PrySDR-f3f0f90a51412d1684b43be6f2b5f93cb4154ee0.tar.gz PrySDR-f3f0f90a51412d1684b43be6f2b5f93cb4154ee0.zip |
Initial empty project structure
Diffstat (limited to 'LA/Test/MatrixXT')
-rw-r--r-- | LA/Test/MatrixXT/MatrixXT.swift | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/LA/Test/MatrixXT/MatrixXT.swift b/LA/Test/MatrixXT/MatrixXT.swift new file mode 100644 index 0000000..55661be --- /dev/null +++ b/LA/Test/MatrixXT/MatrixXT.swift @@ -0,0 +1,53 @@ +// +// 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(row:-1,column: -1,val:0.0) + Issue.record("Should fail") + } catch { + //should allway get here, + } + do { + let _ = try Matrix(row: 0, column: 0, val: 0.0) + Issue.record("Should fail") + } catch { + //should allways get here + } + do { + let _ = try Matrix(row: 1, column: 1, val: 0.0) + } catch { + Issue.record("Failed") + } + + do { + let _ = try Matrix(row: 2, column: 2, val: 0.0) + } catch { + Issue.record("Failed") + } + do { + let _ = try Matrix(row: 3, column: 3, val: 0.0) + } catch { + Issue.record("Failed") + } + do { + let _ = try Matrix(row:16, column: 16, val: 0.0) + } catch { + Issue.record("Failed") + } + +} + +} |