mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Adds unit tests
Former-commit-id: 33e9d9a8a370afc3d6318c6972de02a957fa3098
This commit is contained in:
@ -94,6 +94,8 @@ func (matrix *Matrix[T]) Rows(i ...int) Matrix[T] {
|
||||
// It returns two integers: the number of rows and the number of columns.
|
||||
func (matrix *Matrix[T]) Dim() (int, int) {
|
||||
switch {
|
||||
case matrix == nil:
|
||||
return 0, 0
|
||||
case *matrix == nil:
|
||||
return 0, 0
|
||||
case len(*matrix) == 0:
|
||||
|
Reference in New Issue
Block a user