Skip to content

Commit

Permalink
Add a test for no times given
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykubica committed Feb 12, 2024
1 parent 7ca9059 commit 41bb952
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_fake_data_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def test_create(self):
self.assertGreater(t, last_time)
last_time = t

def test_create_empty_times(self):
ds = FakeDataSet(256, 128, [])
self.assertEqual(ds.stack.img_count(), 0)

def test_insert_object(self):
times = create_fake_times(5, 57130.2, 3, 0.01, 1)
ds = FakeDataSet(128, 128, times, use_seed=True)
Expand Down

0 comments on commit 41bb952

Please sign in to comment.