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 371e9c8 commit 22e219cCopy full SHA for 22e219c
1 file changed
src/Math-Tests-Polynomials/PMPolynomialTest.class.st
@@ -244,11 +244,14 @@ PMPolynomialTest >> testPolynomialRoots [
244
245
{ #category : #'iterative algorithms' }
246
PMPolynomialTest >> testPolynomialRootsForConstant [
247
+
248
| polynomial |
- "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
-
+ "Here, compute the roots of the constant C = 1"
+ polynomial := PMPolynomial coefficients: #( 1 ).
+ self
252
+ should: [ polynomial roots ]
253
+ raise: Error
254
+ description: 'Function''s derivative seems to be zero everywhere'
255
]
256
257
0 commit comments