Skip to content

Commit 300f536

Browse files
committed
add tests for atRow: method
1 parent f5fd0c0 commit 300f536

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ PMMatrixTest >> testAtColumnPutRepeat [
4848
self assert: a equals: (PMMatrix rows: #(#(1 nil nil) #(1 nil nil) #(nil nil nil))).
4949
]
5050

51+
{ #category : #tests }
52+
PMMatrixTest >> testAtRow [
53+
54+
| a |
55+
a := PMMatrix rows: #(#(1 2 3) #(2 3 4)).
56+
57+
self assert: (a atRow: 2) equals: (#(2 3 4) asPMVector).
58+
self assert: (a atRow: 1) equals: (#(1 2 3) asPMVector).
59+
]
60+
5161
{ #category : #'linear algebra' }
5262
PMMatrixTest >> testAtRowPutAtColumnPut [
5363
| a |

0 commit comments

Comments
 (0)