Skip to content

Commit fc66d1d

Browse files
fix: corrected a comment.
1 parent 25ba113 commit fc66d1d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Math-Tests-Polynomials/PMPolynomialTest.class.st

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,13 @@ PMPolynomialTest >> testPolynomialRootsForConstant [
256256

257257
{ #category : #'iterative algorithms' }
258258
PMPolynomialTest >> testPolynomialRootsForLinear [
259+
259260
| polynomial roots |
260-
"Here, compute the roots of the quadratic (2x + 1)"
261-
polynomial := PMPolynomial coefficients: #(1 2).
262-
roots := polynomial roots .
261+
"Here, compute the roots of the linear (2x + 1)"
262+
polynomial := PMPolynomial coefficients: #( 1 2 ).
263+
roots := polynomial roots.
263264
self assert: roots size equals: 1.
264-
self assert: (roots at: 1) closeTo: -0.5 .
265+
self assert: (roots at: 1) closeTo: -0.5
265266
]
266267

267268
{ #category : #'function evaluation' }

0 commit comments

Comments
 (0)