Skip to content

Commit

Permalink
Added regression tests for issue ContinualAI#774
Browse files Browse the repository at this point in the history
  • Loading branch information
lrzpellegrini committed May 30, 2023
1 parent ce12590 commit eef6333
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_core50.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ def test_core50_nc_benchmark(self):
classes_in_test = benchmark_instance.classes_in_experience["test"][0]
self.assertSetEqual(set(range(50)), set(classes_in_test))

# Regression tests for issue #774
self.assertSequenceEqual(
[10] + ([5] * 8),
benchmark_instance.n_classes_per_exp)
self.assertSetEqual(
set(range(50)),
set(benchmark_instance.classes_order))
self.assertEqual(
50,
len(benchmark_instance.classes_order))


if __name__ == "__main__":
unittest.main()

0 comments on commit eef6333

Please sign in to comment.