Skip to content

Commit 95c6817

Browse files
Inlined the set up of the quaternion.
1 parent a8ed8c4 commit 95c6817

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,12 @@ PMQuaternionTest >> testMultiplicationByIntegersIsCommutative [
190190

191191
{ #category : #running }
192192
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
193+
194+
| poly quaternion |
195+
poly := PMPolynomial coefficients: #( 1 1 1 ).
196+
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
197199
]
198200

199201
{ #category : #tests }

0 commit comments

Comments
 (0)