Skip to content

Commit ea559d7

Browse files
Clarified the category of the test messages.
1 parent 95c6817 commit ea559d7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Math-Tests-Quaternion/PMQuaternionTest.class.st

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ PMQuaternionTest >> testLog [
160160
self assert: (qln qk closeTo: qlg10ln qk)
161161
]
162162

163-
{ #category : #running }
163+
{ #category : #'testing - arithmetic' }
164164
PMQuaternionTest >> 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' }
174174
PMQuaternionTest >> 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' }
182182
PMQuaternionTest >> 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' }
192192
PMQuaternionTest >> 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' }
213213
PMQuaternionTest >> 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' }
229229
PMQuaternionTest >> 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' }
237237
PMQuaternionTest >> testMultiplicationOfBasisElements [
238238
"https://en.wikipedia.org/wiki/Quaternion#Multiplication_of_basis_elements"
239239

0 commit comments

Comments
 (0)