mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
tests: fix unit test on 32-bit Ubuntu due to float imprecision
This commit is contained in:
parent
4877e8350d
commit
fc172f8918
@ -88,8 +88,8 @@ def test_minkowski_sum_shape():
|
|||||||
assert type(shape) is type(shape2)
|
assert type(shape) is type(shape2)
|
||||||
assert shape.margin == shape2.margin
|
assert shape.margin == shape2.margin
|
||||||
assert shape.name == shape2.name
|
assert shape.name == shape2.name
|
||||||
assert shape.transform_a.mat.compare_to(shape2.transform_a.mat) == 0
|
assert shape.transform_a.mat.compare_to(shape2.transform_a.mat, 0.001) == 0
|
||||||
assert shape.transform_b.mat.compare_to(shape2.transform_b.mat) == 0
|
assert shape.transform_b.mat.compare_to(shape2.transform_b.mat, 0.001) == 0
|
||||||
assert type(shape.shape_a) == type(shape2.shape_a)
|
assert type(shape.shape_a) == type(shape2.shape_a)
|
||||||
assert type(shape.shape_b) == type(shape2.shape_b)
|
assert type(shape.shape_b) == type(shape2.shape_b)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user