mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
tests: fix issue with double-precision TextNode tests
This commit is contained in:
parent
5ae38a8a92
commit
c43d9b5002
@ -82,10 +82,10 @@ def test_textnode_flatten_color():
|
||||
path.set_color(color)
|
||||
path.flatten_strong()
|
||||
|
||||
assert text.text_color == color
|
||||
assert text.shadow_color == color
|
||||
assert text.frame_color == color
|
||||
assert text.card_color == color
|
||||
assert text.text_color.almost_equal(color)
|
||||
assert text.shadow_color.almost_equal(color)
|
||||
assert text.frame_color.almost_equal(color)
|
||||
assert text.card_color.almost_equal(color)
|
||||
|
||||
|
||||
def test_textnode_flatten_colorscale():
|
||||
@ -100,7 +100,7 @@ def test_textnode_flatten_colorscale():
|
||||
path.set_color_scale(color)
|
||||
path.flatten_strong()
|
||||
|
||||
assert text.text_color == (.5, 0, 0, 0)
|
||||
assert text.shadow_color == (0, .5, 0, 0)
|
||||
assert text.frame_color == (0, 0, .5, 0)
|
||||
assert text.card_color == (0, 0, 0, .5)
|
||||
assert text.text_color.almost_equal((.5, 0, 0, 0))
|
||||
assert text.shadow_color.almost_equal((0, .5, 0, 0))
|
||||
assert text.frame_color.almost_equal((0, 0, .5, 0))
|
||||
assert text.card_color.almost_equal((0, 0, 0, .5))
|
||||
|
Loading…
x
Reference in New Issue
Block a user