Skip to content

Commit 22e219c

Browse files
fix: corrected the comment.
1 parent 371e9c8 commit 22e219c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,14 @@ PMPolynomialTest >> testPolynomialRoots [
244244

245245
{ #category : #'iterative algorithms' }
246246
PMPolynomialTest >> testPolynomialRootsForConstant [
247+
247248
| polynomial |
248-
"Here, compute the roots of the quadratic (2x + 1)"
249-
polynomial := PMPolynomial coefficients: #(1).
250-
self should: [ polynomial roots ] raise: Error description: 'Function''s derivative seems to be zero everywhere'.
251-
249+
"Here, compute the roots of the constant C = 1"
250+
polynomial := PMPolynomial coefficients: #( 1 ).
251+
self
252+
should: [ polynomial roots ]
253+
raise: Error
254+
description: 'Function''s derivative seems to be zero everywhere'
252255
]
253256

254257
{ #category : #'iterative algorithms' }

0 commit comments

Comments
 (0)