Skip to content

Commit

Permalink
Up utils coverage (#206)
Browse files Browse the repository at this point in the history
* Up utils coverage

* Update test_utils.py

* Update test_utils.py
  • Loading branch information
JoranAngevaare committed Apr 5, 2022
1 parent ca2cfd3 commit 9d5dd3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ def test_to_str_tuple():
def test_get_hash():
dddm.utils.deterministic_hash({'bla': np.zeros(19),
'foo': pd.DataFrame()})
dddm.utils.deterministic_hash(list(np.arange(19, dtype=np.int64)))
dddm.utils.deterministic_hash(
list(np.arange(3, dtype=np.int64)) +
[{str(a): a for a in np.arange(3, dtype=np.float64)}] +
[np.array([np.arange(2), np.arange(2)])]
)

0 comments on commit 9d5dd3a

Please sign in to comment.