Skip to content

Commit 5bcdd3d

Browse files
Fix color assignment in HStack layout test: swap blue and red overlay colors
1 parent b8bf176 commit 5bcdd3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/python/unit/visualizer/test_layout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ def test_flatten_layout_with_no_primitives(mock_image: Image, mock_scene: Scene)
3030
def test_hstack_layout():
3131
"""Test if the layout is created correctly."""
3232
blue_overlay = np.zeros((100, 100, 3), dtype=np.uint8)
33-
blue_overlay[50, 50] = [255, 0, 0]
33+
blue_overlay[50, 50] = [0, 0, 255]
3434
blue_overlay = Image.fromarray(blue_overlay)
3535

3636
red_overlay = np.zeros((100, 100, 3), dtype=np.uint8)
37-
red_overlay[50, 50] = [0, 0, 255]
37+
red_overlay[50, 50] = [255, 0, 0]
3838
red_overlay = Image.fromarray(red_overlay)
3939

4040
mock_scene = Scene(

0 commit comments

Comments
 (0)