Skip to content

Commit 205918f

Browse files
Copied another assertion to the custom assertion method.
1 parent c2cefc1 commit 205918f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ Class {
55
}
66

77
{ #category : #running }
8-
PMQRTest >> mpTestFunction: aMatrix [
8+
PMQRTest >> assert: inverse isInverseOf: aMatrix [
99

10-
| inverse identityMatrix |
11-
inverse := aMatrix mpInverse.
10+
| identityMatrix |
1211
identityMatrix := inverse * aMatrix.
1312
self assert: (aMatrix * identityMatrix closeTo: aMatrix).
1413
self assert: identityMatrix * inverse closeTo: inverse.
@@ -17,6 +16,15 @@ PMQRTest >> mpTestFunction: aMatrix [
1716
self assert: identityMatrix transpose closeTo: identityMatrix
1817
]
1918

19+
{ #category : #running }
20+
PMQRTest >> mpTestFunction: aMatrix [
21+
22+
| inverse |
23+
inverse := aMatrix mpInverse.
24+
self assert: inverse isInverseOf: aMatrix.
25+
26+
]
27+
2028
{ #category : #tests }
2129
PMQRTest >> testMoorePenroseInverse [
2230

0 commit comments

Comments
 (0)