Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiawisdom authored Dec 8, 2024
1 parent 92b8c45 commit 1492893
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/module/utils/test_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np

from manim import BLACK, Mobject, Scene, VMobject
from manim import BLACK, WHITE, RED, Mobject, Scene, VMobject


def test_import_color():
Expand Down Expand Up @@ -49,3 +49,7 @@ def test_set_color():
assert m.color.to_hex() == "#FFFFFF"
m.set_color(BLACK)
assert m.color.to_hex() == "#000000"

def test_color_hash():
assert hash(WHITE) == hash(WHITE.copy())
assert hash(WHITE) != hash(RED)

0 comments on commit 1492893

Please sign in to comment.