Skip to content

Commit

Permalink
tests/test_toc.py: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Mar 26, 2024
1 parent c83d623 commit 53aa8f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_toc.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ def test_full_toc():
expected = pathlib.Path(expected_path).read_bytes()
toc = "\n".join([str(t) for t in doc.get_toc(False)])
toc += "\n"
print(f'toc is:\n{toc!r}')
expected2 = expected.decode("utf8")
print(f'expected2 is:\n{expected2!r}')

print(f'toc encoded is:\n{toc.encode("utf8")!r}')
print(f'expected is:\n{expected!r}')
assert toc == expected.decode("utf8")


Expand Down

0 comments on commit 53aa8f0

Please sign in to comment.