def test_no_updates() -> None:
    """Test behavior when no updates are made to the metric."""
    metric = _MinMax()

    min_val, max_val = metric.compute()

    assert torch.isinf(min_val), "Min should remain positive infinity with no updates."
    assert min_val > 0, "Min should remain positive infinity with no updates."
    assert torch.isinf(max_val), "Max should remain negative infinity with no updates."
    assert max_val < 0, "Max should remain negative infinity with no updates."
Test behavior when no updates are made to the metric.
tests/unit/metrics/test_min_max.py