improve back and frontend testing

This commit is contained in:
2026-03-29 19:58:06 -07:00
parent 29eee8a42c
commit e9215a64ff
70 changed files with 13441 additions and 134 deletions

View File

@@ -42,3 +42,15 @@ def test_mask_operations():
assert result_xnor[5, 5] == 255
assert result_xnor[15, 15] == 0
assert result_xnor[35, 35] == 0
def test_mask_operations_unknown_operation():
from backend.nodes.mask_operations import MaskOperations
node = MaskOperations()
a = np.zeros((16, 16), dtype=np.uint8)
b = np.zeros((16, 16), dtype=np.uint8)
try:
node.process(a, b, operation="invalid_op")
assert False, "Expected ValueError"
except ValueError:
pass