mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 11:19:53 +00:00
test: fix numpy dtype
This commit is contained in:
@@ -112,7 +112,8 @@ class TestHasIntersection:
|
||||
[0, 0, 0, 0],
|
||||
[0, 0, 0, 0],
|
||||
[0, 0, 0, 0],
|
||||
]
|
||||
],
|
||||
dtype=np.uint8,
|
||||
)
|
||||
arr2 = arr1.copy()
|
||||
assert not has_intersection(arr1, arr2)
|
||||
@@ -124,7 +125,8 @@ class TestHasIntersection:
|
||||
[0, 255, 255, 0],
|
||||
[0, 255, 255, 0],
|
||||
[0, 0, 0, 0],
|
||||
]
|
||||
],
|
||||
dtype=np.uint8,
|
||||
)
|
||||
arr2 = np.array(
|
||||
[
|
||||
@@ -132,7 +134,8 @@ class TestHasIntersection:
|
||||
[0, 0, 0, 0],
|
||||
[0, 0, 255, 255],
|
||||
[0, 0, 255, 255],
|
||||
]
|
||||
],
|
||||
dtype=np.uint8,
|
||||
)
|
||||
assert has_intersection(arr1, arr2)
|
||||
|
||||
@@ -142,7 +145,8 @@ class TestHasIntersection:
|
||||
[0, 0, 0, 0],
|
||||
[0, 0, 0, 255],
|
||||
[0, 0, 255, 255],
|
||||
]
|
||||
],
|
||||
dtype=np.uint8,
|
||||
)
|
||||
assert not has_intersection(arr1, arr3)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user