diff options
| author | Stian H. Johannesen <stianhj@gmail.com> | 2025-06-27 12:17:43 +0200 |
|---|---|---|
| committer | Stian H. Johannesen <stianhj@gmail.com> | 2025-06-27 12:17:43 +0200 |
| commit | 39b13197d23073f51b82ba090b8931969037f660 (patch) | |
| tree | 23c637602242c807fba6b2eeb3c05989b4680b86 /tools | |
| parent | 344eea71fbf1863106bc051dbae11534e7dcca74 (diff) | |
fix trailing whitespace in matrix formatting
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/odinfmt/tests/.snapshots/calls.odin | 8 | ||||
| -rw-r--r-- | tools/odinfmt/tests/random/.snapshots/demo.odin | 34 |
2 files changed, 21 insertions, 21 deletions
diff --git a/tools/odinfmt/tests/.snapshots/calls.odin b/tools/odinfmt/tests/.snapshots/calls.odin index a967448..2d74a7a 100644 --- a/tools/odinfmt/tests/.snapshots/calls.odin +++ b/tools/odinfmt/tests/.snapshots/calls.odin @@ -143,12 +143,12 @@ calls :: proc() { _ = vk.CreateInsance(Composite{1, 2, 3, 4}) _ = vk.CreateInsance(Composite{1, 2, 3, 4}) _ = vk.CreateInsance(matrix[2, 2]i32{ - 1, 2, - 3, 4, + 1, 2, + 3, 4, }) _ = vk.CreateInsance(matrix[2, 2]i32{ - 1, 2, - 3, 4, + 1, 2, + 3, 4, }) test_2( diff --git a/tools/odinfmt/tests/random/.snapshots/demo.odin b/tools/odinfmt/tests/random/.snapshots/demo.odin index 0ab2124..d78b5ec 100644 --- a/tools/odinfmt/tests/random/.snapshots/demo.odin +++ b/tools/odinfmt/tests/random/.snapshots/demo.odin @@ -2391,8 +2391,8 @@ matrix_type :: proc() { m: matrix[2, 3]f32 m = matrix[2, 3]f32{ - 1, 9, -13, - 20, 5, -6, + 1, 9, -13, + 20, 5, -6, } // Element types of integers, float, and complex numbers are supported by matrices. @@ -2418,14 +2418,14 @@ matrix_type :: proc() { { // Matrices support multiplication between matrices a := matrix[2, 3]f32{ - 2, 3, 1, - 4, 5, 0, + 2, 3, 1, + 4, 5, 0, } b := matrix[3, 2]f32{ - 1, 2, - 3, 4, - 5, 6, + 1, 2, + 3, 4, + 5, 6, } fmt.println("a", a) @@ -2438,10 +2438,10 @@ matrix_type :: proc() { { // Matrices support multiplication between matrices and arrays m := matrix[4, 4]f32{ - 1, 2, 3, 4, - 5, 5, 4, 2, - 0, 1, 3, 0, - 0, 1, 4, 1, + 1, 2, 3, 4, + 5, 5, 4, 2, + 0, 1, 3, 0, + 0, 1, 4, 1, } v := [4]f32{1, 5, 4, 3} @@ -2454,8 +2454,8 @@ matrix_type :: proc() { // Support with non-square matrices s := matrix[2, 4]f32{ // [4][2]f32 - 2, 4, 3, 1, - 7, 8, 6, 5, + 2, 4, 3, 1, + 7, 8, 6, 5, } w := [2]f32{1, 2} @@ -2468,13 +2468,13 @@ matrix_type :: proc() { // Not support for '/', '%', or '%%' operations a := matrix[2, 2]i32{ - 1, 2, - 3, 4, + 1, 2, + 3, 4, } b := matrix[2, 2]i32{ - -5, 1, - 9, -7, + -5, 1, + 9, -7, } c0 := a + b |