Skip to content

Commit 5bf6c6a

Browse files
committed
trying to write test
1 parent d7a48dc commit 5bf6c6a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from napari_cellseg_annotator import utils
2+
import numpy as np
3+
4+
def test_normalize_x() :
5+
6+
test_array = utils.normalize_x(np.array([0,255,127.5]))
7+
expected = np.array([-1,1, 0])
8+
assert np.all(test_array == expected)
9+

0 commit comments

Comments
 (0)