diff tests/test_matrix.nim @ 58:8287a91e5d56

did: refactor Matrix names
author Sam <sam@basx.dev>
date Fri, 20 Jan 2023 16:36:52 +0700
parents 547f3a374271
children 77755701bf49
line wrap: on
line diff
--- a/tests/test_matrix.nim	Fri Jan 20 16:13:32 2023 +0700
+++ b/tests/test_matrix.nim	Fri Jan 20 16:36:52 2023 +0700
@@ -33,52 +33,52 @@
 
 
 template withAllIntegerMats(stuff: untyped) =
-  stuff(Mat22[int32])
-  stuff(Mat23[int32])
-  stuff(Mat32[int32])
-  stuff(Mat33[int32])
-  stuff(Mat34[int32])
-  stuff(Mat43[int32])
-  stuff(Mat44[int32])
-  stuff(Mat22[int64])
-  stuff(Mat23[int64])
-  stuff(Mat32[int64])
-  stuff(Mat33[int64])
-  stuff(Mat34[int64])
-  stuff(Mat43[int64])
-  stuff(Mat44[int64])
+  stuff(TMat22[int32])
+  stuff(TMat23[int32])
+  stuff(TMat32[int32])
+  stuff(TMat33[int32])
+  stuff(TMat34[int32])
+  stuff(TMat43[int32])
+  stuff(TMat44[int32])
+  stuff(TMat22[int64])
+  stuff(TMat23[int64])
+  stuff(TMat32[int64])
+  stuff(TMat33[int64])
+  stuff(TMat34[int64])
+  stuff(TMat43[int64])
+  stuff(TMat44[int64])
 
 template withAllFloatMats(stuff: untyped) =
-  stuff(Mat22[float32])
-  stuff(Mat23[float32])
-  stuff(Mat32[float32])
-  stuff(Mat33[float32])
-  stuff(Mat34[float32])
-  stuff(Mat43[float32])
-  stuff(Mat44[float32])
-  stuff(Mat22[float64])
-  stuff(Mat23[float64])
-  stuff(Mat32[float64])
-  stuff(Mat33[float64])
-  stuff(Mat34[float64])
-  stuff(Mat43[float64])
-  stuff(Mat44[float64])
+  stuff(TMat22[float32])
+  stuff(TMat23[float32])
+  stuff(TMat32[float32])
+  stuff(TMat33[float32])
+  stuff(TMat34[float32])
+  stuff(TMat43[float32])
+  stuff(TMat44[float32])
+  stuff(TMat22[float64])
+  stuff(TMat23[float64])
+  stuff(TMat32[float64])
+  stuff(TMat33[float64])
+  stuff(TMat34[float64])
+  stuff(TMat43[float64])
+  stuff(TMat44[float64])
 
 template withAllMats(stuff: untyped) =
-  stuff(Mat22[int])
-  stuff(Mat23[int])
-  stuff(Mat32[int])
-  stuff(Mat33[int])
-  stuff(Mat34[int])
-  stuff(Mat43[int])
-  stuff(Mat44[int])
-  stuff(Mat22[float])
-  stuff(Mat23[float])
-  stuff(Mat32[float])
-  stuff(Mat33[float])
-  stuff(Mat34[float])
-  stuff(Mat43[float])
-  stuff(Mat44[float])
+  stuff(TMat22[int])
+  stuff(TMat23[int])
+  stuff(TMat32[int])
+  stuff(TMat33[int])
+  stuff(TMat34[int])
+  stuff(TMat43[int])
+  stuff(TMat44[int])
+  stuff(TMat22[float])
+  stuff(TMat23[float])
+  stuff(TMat32[float])
+  stuff(TMat33[float])
+  stuff(TMat34[float])
+  stuff(TMat43[float])
+  stuff(TMat44[float])
 
 template testTranspose(t: typedesc) =
   echo "testTranspose: ", t
@@ -133,9 +133,9 @@
   echo Unit44i32
   echo Unit44i64
 
-  echo Mat22[float]().randomized() * One2.randomized()
-  echo Mat33[float]().randomized() * One3.randomized()
-  echo Mat44[float]().randomized() * One4.randomized()
+  echo TMat22[float]().randomized() * One2.randomized()
+  echo TMat33[float]().randomized() * One3.randomized()
+  echo TMat44[float]().randomized() * One4.randomized()
 
 randomize()
 testMatrix()