@@ -21,14 +21,18 @@ buildDunePackage rec {
2121 })
2222 ];
2323
24− # disable remaining broken tests, see
25− # https://github.com/andrenth/ocaml-stdint/issues/59
24+ # 1. disable remaining broken tests, see
25+ # https://github.com/andrenth/ocaml-stdint/issues/59
26+ # 2. fix tests to liberal test range
27+ # https://github.com/andrenth/ocaml-stdint/pull/61
2628 postPatch = ''
2729 substituteInPlace tests/stdint_test.ml \
2830 --replace 'test "An integer should perform left-shifts correctly"' \
2931 'skip "An integer should perform left-shifts correctly"' \
3032 --replace 'test "Logical shifts must not sign-extend"' \
31− 'skip "Logical shifts must not sign-extend"'
33+ 'skip "Logical shifts must not sign-extend"' \
34+ --replace 'let pos_int = QCheck.map_same_type abs in_range' \
35+ 'let pos_int = QCheck.int_range 0 maxi'
3236 '';
3337
3438 doCheck = true;