Skip to content

Commit f86970d

Browse files
committed
Fixup hex decoding math
1 parent d226908 commit f86970d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_editor_load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_editor_loads_jscm_data_match(self, colormap_file):
6969
expected_colors = [
7070
# TODO: Should we divide by 255 here instead of 256? The tests pass with a
7171
# lower value for `err` if we do.
72-
[int(c[i : i + 2], 16) / 256 for i in range(0, len(c), 2)]
72+
[int(c[i : i + 2], 16) / 255 for i in range(0, len(c), 2)]
7373
for c in expected_colors_hex
7474
]
7575

0 commit comments

Comments
 (0)