Skip to content

Commit

Permalink
Test that numpy scalars becomes primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
mverleg committed Jan 2, 2024
1 parent b79572f commit ac5c8be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_np.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def test_scalars_types():
json = dumps(encme, indent=2)
rec = loads(json)
assert encme == rec
for nr in rec:
assert nr.__class__ in (int, float, complex), 'primitive python type expected, see issue #18'


def test_array_types():
Expand Down

0 comments on commit ac5c8be

Please sign in to comment.