mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 23:34:57 -04:00
tests: Backport unit test fix from c0d34912230495bb20c581de9d111a87a0336893
This commit is contained in:
parent
0415a08416
commit
5804c663a9
@ -129,8 +129,8 @@ def test_vec2_floordiv(type):
|
||||
with pytest.raises(ZeroDivisionError):
|
||||
type(1, 2) // 0
|
||||
|
||||
for i in range(-100, 100):
|
||||
for j in range(1, 100):
|
||||
for i in range(-11, 11):
|
||||
for j in range(1, 11):
|
||||
assert (type(i) // j).x == i // j
|
||||
assert (type(i) // -j).x == i // -j
|
||||
|
||||
|
@ -114,8 +114,8 @@ def test_vec3_floordiv(type):
|
||||
with pytest.raises(ZeroDivisionError):
|
||||
type(1, 2, 3) // 0
|
||||
|
||||
for i in range(-100, 100):
|
||||
for j in range(1, 100):
|
||||
for i in range(-11, 11):
|
||||
for j in range(1, 11):
|
||||
assert (type(i) // j).x == i // j
|
||||
assert (type(i) // -j).x == i // -j
|
||||
|
||||
|
@ -130,8 +130,8 @@ def test_vec4_floordiv(type):
|
||||
with pytest.raises(ZeroDivisionError):
|
||||
type(1, 2, 3, 4) // 0
|
||||
|
||||
for i in range(-100, 100):
|
||||
for j in range(1, 100):
|
||||
for i in range(-11, 11):
|
||||
for j in range(1, 11):
|
||||
assert (type(i) // j).x == i // j
|
||||
assert (type(i) // -j).x == i // -j
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user