Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Commit

Permalink
Test that fingerprint contains only valid floats
Browse files Browse the repository at this point in the history
  • Loading branch information
joclement committed Oct 23, 2020
1 parent f6cdb26 commit 02ad6d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_fingerprint.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import math

import pandas as pd

from thesis import fingerprint
Expand All @@ -7,6 +9,8 @@ def test_fingerprint_tu_graz(measurement):
finger = fingerprint.tu_graz(measurement)
assert type(finger) is pd.Series
assert len(finger) == 14
assert all([not math.isnan(value) for value in finger])
assert finger.dtype == "float64"
assert len(finger) == len(set(finger.tolist()))


Expand Down

0 comments on commit 02ad6d1

Please sign in to comment.