Skip to content

Commit 9f087d9

Browse files
committed
add test for zero dimensional PMMatrix
1 parent fcbf0cc commit 9f087d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Math-Tests-Matrix/PMMatrixTest.class.st

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,9 @@ PMMatrixTest >> testMatrixHash [
473473
{ #category : #'linear algebra' }
474474
PMMatrixTest >> testMatrixInitializationWithNegativeDimensions [
475475

476+
" matrices with negative dimension and zero dimension should not be allowed."
476477
self should: [ PMMatrix new: -2 ] raise: AssertionFailure .
477-
self should: [ PMMatrix rows: -3 columns: 4 ] raise: AssertionFailure.
478+
self should: [ PMMatrix rows: 0 columns: 4 ] raise: AssertionFailure.
478479
]
479480

480481
{ #category : #'linear algebra' }

0 commit comments

Comments
 (0)