@@ -160,7 +160,7 @@ PMQuaternionTest >> testLog [
160160 self assert: (qln qk closeTo: qlg10ln qk)
161161]
162162
163- { #category : #running }
163+ { #category : #' testing - arithmetic ' }
164164PMQuaternionTest >> testMultiplicationByComplexNumberIsNonCommutative [
165165 | quaternion complexNumber |
166166 quaternion := 2 + 3 i + 4 j + 5 k.
@@ -170,15 +170,15 @@ PMQuaternionTest >> testMultiplicationByComplexNumberIsNonCommutative [
170170 self assert: (complexNumber * quaternion) equals: 5 + 1 i + 9 j + 1 k.
171171]
172172
173- { #category : #running }
173+ { #category : #' testing - arithmetic ' }
174174PMQuaternionTest >> testMultiplicationByConjugate [
175175
176176 | quaternion |
177177 quaternion := 1 + 2 i + 3 j + 4 k.
178178 self assert: quaternion * (quaternion conjugated) equals: 30
179179]
180180
181- { #category : #running }
181+ { #category : #' testing - arithmetic ' }
182182PMQuaternionTest >> testMultiplicationByIntegersIsCommutative [
183183
184184 | quaternion |
@@ -188,7 +188,7 @@ PMQuaternionTest >> testMultiplicationByIntegersIsCommutative [
188188 self assert: 5 * quaternion equals: 5 + 10 i + 15 j + 20 k.
189189]
190190
191- { #category : #running }
191+ { #category : #' testing - arithmetic ' }
192192PMQuaternionTest >> testMultiplicationByPolynomialIsCommutative [
193193
194194 | poly quaternion |
@@ -209,7 +209,7 @@ PMQuaternionTest >> testMultiplicationByTheBasisElements [
209209 self assert: quaternion * 1 k equals: (- 4 + 3 i - 2 j + 1 k)
210210]
211211
212- { #category : #running }
212+ { #category : #' testing - arithmetic ' }
213213PMQuaternionTest >> testMultiplicationByVectorIsCommutative [
214214 | vec quaternion |
215215 vec := PMVector new : 2 .
@@ -225,15 +225,15 @@ PMQuaternionTest >> testMultiplicationByVectorIsCommutative [
225225 self assert: (quaternion * vec at: 2 ) equals: 2 + 4 i + 6 j + 8 k.
226226]
227227
228- { #category : #running }
228+ { #category : #' testing - arithmetic ' }
229229PMQuaternionTest >> testMultiplicationByZero [
230230 | quaternion |
231231 quaternion := 1 + 2 i + 3 j + 4 k.
232232
233233 self assert: quaternion * 0 equals: 0 + 0 i + 0 j + 0 k.
234234]
235235
236- { #category : #running }
236+ { #category : #' testing - arithmetic ' }
237237PMQuaternionTest >> testMultiplicationOfBasisElements [
238238" https://en.wikipedia.org/wiki/Quaternion#Multiplication_of_basis_elements"
239239
0 commit comments