mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
Add unit-test to test frozen modules.
This commit is contained in:
parent
a601cda422
commit
49416a5bc0
6
scripts/unittest/script/22-frozen_modules.py
Normal file
6
scripts/unittest/script/22-frozen_modules.py
Normal file
@ -0,0 +1,6 @@
|
||||
def unittest(data_path, temp_path):
|
||||
import ulinalg
|
||||
from vec import distance
|
||||
m = ulinalg.ones(1, 10)
|
||||
d = distance.euclidean((0, 0, 0), (0, 1, 0))
|
||||
return (abs(1.0-d) < 0.01) and (abs(10.0 - sum(m)) < 0.01)
|
Loading…
Reference in New Issue
Block a user