Skip to content

Commit

Permalink
Update test_text_quotation_marks
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Dec 1, 2024
1 parent a956cfb commit 41d50b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pygmt/tests/baseline/test_text_quotation_marks.png.dvc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
outs:
- md5: 90d08c5a11c606abed51b84eafcdea04
size: 1662
- md5: f3ddc9b50f3da1facdbcd32261db3bd6
size: 2965
hash: md5
path: test_text_quotation_marks.png
12 changes: 8 additions & 4 deletions pygmt/tests/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,17 @@ def test_text_nonascii(encoding):
@pytest.mark.mpl_image_compare
def test_text_quotation_marks():
"""
Test typesetting quotation marks.
Test typesetting single and double quotation marks.
See https://github.com/GenericMappingTools/pygmt/issues/3104.
See https://github.com/GenericMappingTools/pygmt/issues/3104 and
https://github.com/GenericMappingTools/pygmt/issues/3476.
"""
quotations = "` ' ‘ ’ \" “ ”" # noqa: RUF001
fig = Figure()
fig.basemap(projection="X4c/2c", region=[0, 4, 0, 2], frame=0)
fig.text(x=2, y=1, text='\\234 ‘ ’ " “ ”', font="20p") # noqa: RUF001
fig.basemap(
projection="X4c/2c", region=[0, 4, 0, 2], frame=["S", f"x+l{quotations}"]
)
fig.text(x=2, y=1, text=quotations, font="20p")
return fig


Expand Down

0 comments on commit 41d50b0

Please sign in to comment.