Commit 2337dd23 authored by Thomas Dowrick's avatar Thomas Dowrick

Issue #98: Add unit test

parent b743bddf
Pipeline #4539 passed with stages
in 6 minutes and 7 seconds
import pytest
import numpy as np
import sksurgeryvtk.utils.matrix_utils as mu
def test_get_l2r_matrix_smartliver_format():
l2r = np.array([[1, 2, 3, 1],
[4, 5, 6, 2],
[7, 8, 9, 3],
[0, 0, 0, 1]])
l2r_smartliver = \
mu.get_l2r_smartliver_format(l2r)
expected = np.array([[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
[1, 2, 3]])
assert(np.array_equal(l2r_smartliver, expected))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment