Skip to content

Commit

Permalink
Test for #40.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhsamuel committed Aug 7, 2024
1 parent 0b27c50 commit 32f25f1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/fixfmt/test/test_npfmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,12 @@ def test_choose_formatter_unicode_empty():
assert isinstance(fmt, fixfmt.String)


# GH #40
@skip_np
def test_int64_convert():
fmt = fixfmt.Number(19, -1)
x = 1600000000000000127
assert np.int64(x) == x
assert fmt(np.int64(x)) == "1600000000000000127"


0 comments on commit 32f25f1

Please sign in to comment.