Skip to content

Commit

Permalink
Add field_list test
Browse files Browse the repository at this point in the history
  • Loading branch information
btjanaka committed Nov 10, 2023
1 parent 2af61b0 commit 28b8ffe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/archives/archive_base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ def test_qd_score_offset_correct(data):
assert data.archive.qd_score_offset == 0.0 # Default value.


def test_field_list_correct(data):
assert data.archive.field_list == [
"solution", "objective", "measures", "metadata", "threshold"
]


def test_basic_stats(data):
assert data.archive.stats.num_elites == 0
assert data.archive.stats.coverage == 0.0
Expand Down

0 comments on commit 28b8ffe

Please sign in to comment.