Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
fealho committed Oct 31, 2024
1 parent 9524b00 commit ae46e7e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/timeseries/test_sequence_length_similarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@


class TestSequenceLengthSimilarity:
def test_compute(self):
"""Test it runs."""
# Setup
real_data = pd.Series(['id1', 'id2', 'id2', 'id3'])
synthetic_data = pd.Series(['id4', 'id5', 'id6'])

# Run
score = SequenceLengthSimilarity.compute(real_data, synthetic_data)

# Assert
assert score == 0.6666666666666667

def test_compute_one(self):
"""Test it returns 1 when real and synthetic data have the same distribution."""
# Setup
Expand Down

0 comments on commit ae46e7e

Please sign in to comment.