We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ed8c4 commit 95c6817Copy full SHA for 95c6817
src/Math-Tests-Quaternion/PMQuaternionTest.class.st
@@ -190,10 +190,12 @@ PMQuaternionTest >> testMultiplicationByIntegersIsCommutative [
190
191
{ #category : #running }
192
PMQuaternionTest >> testMultiplicationByPolynomialIsCommutative [
193
- | poly |
194
- poly := PMPolynomial coefficients: #(1 1 1).
195
- self assert: (poly * q12 at: 0) equals: q12.
196
- self assert: (q12 * poly at: 0) equals: q12
+
+ | poly quaternion |
+ poly := PMPolynomial coefficients: #( 1 1 1 ).
+ quaternion := 1 + 2 i + 0 j + 0 k.
197
+ self assert: (poly * quaternion at: 0) equals: q12.
198
+ self assert: (quaternion * poly at: 0) equals: q12
199
]
200
201
{ #category : #tests }
0 commit comments