File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/Math-Tests-Polynomials Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -244,11 +244,14 @@ PMPolynomialTest >> testPolynomialRoots [
244244
245245{ #category : #' iterative algorithms' }
246246PMPolynomialTest >> 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' }
You can’t perform that action at this time.
0 commit comments