Skip to content

Commit

Permalink
Update excepted error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar-sanjeeev committed Dec 7, 2024
1 parent c6431b2 commit f04150d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrobosim/test/utils/test_general_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ def test_parse_color():
parse_color([1.0, 0.0])
assert (
exc_info.value.args[0]
== "Insufficient elements. RGB color must have exactly 3 elements."
== "Incorrect number of elements. RGB color must have exactly 3 elements."
)

# Test with invalid RGB tuple
with pytest.raises(ValueError) as exc_info:
parse_color((1.0, 0.0))
assert (
exc_info.value.args[0]
== "Insufficient elements. RGB color must have exactly 3 elements."
== "Incorrect number of elements. RGB color must have exactly 3 elements."
)

# Test with invalid named color
Expand Down

0 comments on commit f04150d

Please sign in to comment.