Skip to content

Commit 753ab4a

Browse files
authored
Figure.timestamp: Improve an existing test to check floating-point offset (#2889)
1 parent d5dd5ac commit 753ab4a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
outs:
2-
- md5: be0021731b881e32e3d8a46d6fa8abc3
3-
size: 9450
2+
- md5: c9274f7984b0c3f7228dd758d45d93b6
3+
size: 12286
44
path: test_timestamp_offset.png
5+
hash: md5

pygmt/tests/test_timestamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_timestamp_offset():
5555
"""
5656
fig = Figure()
5757
fig.basemap(projection="X10c/5c", region=[0, 10, 0, 5], frame="g1")
58-
for offset in ["1c", "1c/2c", ("1c", "3c")]:
58+
for offset in ["1c", "1c/2c", ("1c", "3c"), 4, (4, 1)]:
5959
fig.timestamp(offset=offset, timefmt=f"offset={offset}")
6060
return fig
6161

0 commit comments

Comments
 (0)