Skip to content

Commit 616adc8

Browse files
committed
test equality of bounding box
1 parent ff3594c commit 616adc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adaptive/tests/test_average_learner1d.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ def test_tell_many_at_point():
3333
assert learner.nsamples == control.nsamples
3434
assert len(learner._data_samples) == len(control._data_samples)
3535
assert learner._data_samples.keys() == control._data_samples.keys()
36+
3637
for k, v1 in learner._data_samples.items():
3738
v2 = control._data_samples[k]
3839
assert len(v1) == len(v2)
3940
np.testing.assert_almost_equal(np.sort(v1), np.sort(v2))
4041

42+
assert learner._bbox[0] == control._bbox[0]
43+
assert learner._bbox[1] == control._bbox[1]
4144
almost_equal_dicts(learner.losses, control.losses)
4245
np.testing.assert_almost_equal(learner.loss(), control.loss())
4346

0 commit comments

Comments
 (0)