Skip to content

Fix deprecated QCheck functions in test_lru.ml#2394

Closed
cuihtlauac wants to merge 1 commit intomirage:mainfrom
cuihtlauac:fix-deprecated-qcheck-functions
Closed

Fix deprecated QCheck functions in test_lru.ml#2394
cuihtlauac wants to merge 1 commit intomirage:mainfrom
cuihtlauac:fix-deprecated-qcheck-functions

Conversation

@cuihtlauac
Copy link

Summary

  • Update test_lru.ml to use non-deprecated QCheck.Gen functions

Changes

  • frequencyoneof_weighted
  • small_intnat_small

Problem

Build fails with recent qcheck-alcotest due to deprecated function alerts being treated as errors.

Test plan

  • dune build succeeds
  • dune runtest test/irmin passes

🤖 Generated with Claude Code

Update to use non-deprecated QCheck.Gen functions:
- frequency -> oneof_weighted
- small_int -> nat_small

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@zshipko
Copy link
Contributor

zshipko commented Jan 27, 2026

This would require bumping the lower bound on qcheck-alcotest:

"qcheck-alcotest" {>= "0.90.0"}

Or we could use #2393 and add an upper bound there.

@cuihtlauac cuihtlauac closed this Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants