git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.qcheck*: 0.16 -> 0.17

* New exposed function, bug fixes: https://github.com/c-cube/qcheck/blob/0.17/CHANGELOG.md#017 * Fix a too liberal testing range causing an integer overflow in stdint which for some reason only qcheck 0.17 and not 0.16 seems to find

commit2f96b9a7b4c083edf79374ceb9d61b5816648276 authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> dateSat 20 Feb 2021, 15:57 (6 years ago) parent4287f5a
2 files changed+9−5
pkgs/development/ocaml-modules/qcheck/core.nix+2−2 pkgs/development/ocaml-modules/stdint/default.nix+7−3
pkgs/development/ocaml-modules/qcheck/core.nix+2−2
@@ -2,7 +2,7 @@
22
33buildDunePackage rec {
44 pname = "qcheck-core";
5− version = "0.16";
5+ version = "0.17";
66
77 useDune2 = true;
88
@@ -12,7 +12,7 @@ buildDunePackage rec {
1212 owner = "c-cube";
1313 repo = "qcheck";
1414 rev = version;
15− sha256 = "1s5dpqj8zvd3wr2w3fp4wb6yc57snjpxzzfv9fb6l9qgigswwjdr";
15+ sha256 = "0qfyqhfg98spmfci9z6f527a16gwjnx2lrbbgw67p37ys5acrfar";
1616 };
1717
1818 meta = {
pkgs/development/ocaml-modules/stdint/default.nix+7−3
@@ -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;