Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Sep 12, 2024
1 parent b9e537c commit c10e52a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dev_tools/tests/test_nxdl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,22 +203,22 @@ def test_namefitting_precedence(better_fit, better_ref, worse_fit, worse_ref):
([b"bytes", "string"], True, ["bytes", "string"]),
([b"bytes", "string"], False, [b"bytes", "string"]),
([b"bytes", b"more_bytes", "string"], True, ["bytes", "more_bytes", "string"]),
([b"bytes", b"more_bytes", "string"], False, [b"bytes", b"more_bytes", "string"]),
(
[b"bytes", b"more_bytes", "string"],
False,
[b"bytes", b"more_bytes", "string"],
),
([b"fixed", b"length", b"strings"], True, ["fixed", "length", "strings"]),
([b"fixed", b"length", b"strings"], False, [b"fixed", b"length", b"strings"]),
# Test with nested lists
([[b"nested1"], [b"nested2"]], True, [["nested1"], ["nested2"]]),
([[b"nested1"], [b"nested2"]], False, [[b"nested1"], [b"nested2"]]),
# Test with bytes
(b"single", True, "single"),
(b"single", False, b"single"),
# Test with str
("single", True, "single"),
("single", False, "single"),
# Test with int
(123, True, 123),
(123, False, 123),
Expand All @@ -231,4 +231,4 @@ def test_decode_or_not(string_obj, decode, expected):
assert isinstance(result, list), f"Expected list, but got {type(result)}"
# Handle all other cases
else:
assert result == expected, f"Failed for {string_obj} with decode={decode}"
assert result == expected, f"Failed for {string_obj} with decode={decode}"

0 comments on commit c10e52a

Please sign in to comment.