MCPcopy
hub / github.com/arnauddri/algorithms / TestCount

Function TestCount

data-structures/matrix/matrix_test.go:18–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestCount(t *testing.T) {
19 a := []float64{1, 2, 3, 4, 5, 6}
20 A := MakeMatrix(a, 3, 2)
21
22 if A.CountRows() != 3 {
23 t.Error()
24 }
25 if A.CountCols() != 2 {
26 t.Error()
27 }
28}
29
30func TestGetElm(t *testing.T) {
31 a := []float64{1, 2, 3, 4, 5, 6}

Callers

nothing calls this directly

Calls 3

MakeMatrixFunction · 0.85
CountRowsMethod · 0.80
CountColsMethod · 0.80

Tested by

no test coverage detected