Simon Cruanes
477e9cc7ca
remove warning in tests
2024-11-18 12:22:15 -05:00
Simon Cruanes
9bef25b6e2
format
2024-10-02 12:31:53 -04:00
Simon Cruanes
3c530f47f4
Merge branch 'main' into linear-heap-building
2024-10-02 10:04:34 -04:00
Simon Cruanes
3efaa02d9d
update test output
2024-09-17 14:50:42 -04:00
Simon Cruanes
69f0e9b624
test: better regression test for #454
2024-09-17 14:04:09 -04:00
Simon Cruanes
c959e396b3
fix #454 : work around a weird miscompilation
2024-09-17 12:51:07 -04:00
Glen Mével
13db1c31e9
tests/CCHeap: add tests
2024-07-31 16:03:06 +02:00
Glen Mével
92676f5513
tests/CCHeap: reorder tests
2024-07-31 03:27:52 +02:00
Glen Mével
78e67a9f4a
tests/CCHeap: improve existing tests
...
- label all tests
- decouple tests about different heap functions
- random instances now have better coverage of possible cases:
+ more variability in size
(previously, some tests were limited to a fixed size)
+ high probability of duplicates
(previously, the probability of duplicates was negligible,
because elements were drawn uniformly from the full `int` range)
- the test for `of_list, take_exn` is now more precise
(added a duplicate element)
- the test for `to_list_sorted` is now more precise
(checks that the resulting list is what we want,
instead of just checking that it is sorted)
- the test for `filter` is now more precise
(also checks that no element has been spuriously dropped)
- more uniform style for easier reading, using `|>`
2024-07-31 03:27:52 +02:00
Simon Cruanes
944410d3c7
CI: run all tests on linux and various OCaml versions
...
and run macOS stuff only for 5.1
2024-05-13 22:36:16 -04:00
Simon Cruanes
2e276002c6
format
2024-05-13 22:06:31 -04:00
Simon Cruanes
14dc772eba
format
2024-05-13 21:43:29 -04:00
Simon Cruanes
040fe2f97c
move to dune 3.0, fix warnings
2024-05-13 21:42:54 -04:00
Simon Cruanes
8b60f52377
add byte_slice module, fix warnings
2024-05-13 21:05:06 -04:00
Simon Cruanes
0b0dd83423
reformat all the things
2024-05-13 20:57:53 -04:00
Simon Cruanes
69cd3ca78d
Merge pull request #448 from c-cube/wip-pvec
...
containers.pvec
2024-01-16 14:25:58 -05:00
Simon Cruanes
41d8a7a968
add Pvec.equal
2024-01-16 14:20:09 -05:00
Master Builder
17eab9c3f4
CCVector: Add function foldi
2024-01-11 12:19:12 -05:00
Simon Cruanes
821fa6e3cf
more tests
2024-01-08 09:19:39 -05:00
Simon Cruanes
dd552fe334
more tests
2024-01-07 23:30:12 -05:00
Simon Cruanes
81408b8e1b
add last to Pvec
2024-01-05 22:54:08 -05:00
Simon Cruanes
03e253a31c
fix pvec tests
...
(make choose's result irrelevant, only test whether it returns)
2024-01-05 21:54:41 -05:00
Simon Cruanes
209ee3a3ed
fix warning in test
2024-01-05 21:47:40 -05:00
Simon Cruanes
dd0e23cea2
add tests for pvec
2024-01-05 21:47:25 -05:00
Simon Cruanes
884d354986
fix test
2023-12-20 14:41:48 -05:00
Simon Cruanes
8dc4d5a706
fix: overshoot, concat_map is only TRMC after 5.1
2023-12-20 14:38:39 -05:00
Simon Cruanes
7436727942
test: sanity test for flat_map
2023-12-15 22:36:21 -05:00
Simon Cruanes
f68d187142
fix stupid bug
2023-12-05 15:02:41 -05:00
Simon Cruanes
33053a1f96
finish removing threads
2023-12-05 13:45:48 -05:00
Simon Cruanes
36790cf3ed
bugfix
2023-12-05 12:19:15 -05:00
Simon Cruanes
7fcf26963b
ensure unfold is tailrec
2023-12-05 12:04:55 -05:00
Ben Bellick
73e68dae7c
CCList: add unfold
2023-12-05 11:59:55 -05:00
Master Builder
77bfa34355
CCBool: Add functions if_then and if_then_else
2023-11-26 23:31:36 -05:00
Simon Cruanes
49d66def49
Merge pull request #441 from c-cube/wip-rely-on-trmc
...
rely on TRMC more
2023-11-20 19:05:12 -05:00
Simon Cruanes
037c55a43d
tailrec
2023-11-19 23:51:47 -05:00
Simon Cruanes
517fd99a5f
add test for nested ansi color
2023-11-19 22:27:51 -05:00
Simon Cruanes
1b3ddb7adf
fix test
2023-11-19 22:25:17 -05:00
Simon Cruanes
1b026f267c
tests: update t_list to check more functions for tail-rec safety
2023-11-19 21:47:39 -05:00
Fardale
d2bdee097e
Apply ocamlformat on t_array.ml
2023-07-12 16:55:22 +02:00
Simon Cruanes
ad10cdc9d5
fix test
2023-06-24 16:05:49 -04:00
Simon Cruanes
979eca042c
remove last refs to CCShims
2023-06-24 15:59:01 -04:00
Simon Cruanes
1a23731730
remove conditional over OCaml >= 4.08
...
in particular, all the let-ops are now unconditional!
2023-06-24 15:22:21 -04:00
Simon Cruanes
b72fac90c7
compat: test cannot use let-ops
2023-06-01 15:21:52 -04:00
Simon Cruanes
2b4cf1e663
remove dbg message
2023-06-01 15:03:46 -04:00
Simon Cruanes
9f1ecdba27
another fix for CCParse and slices
2023-06-01 15:03:46 -04:00
Simon Cruanes
c7de9389b0
fix bug in CCParse
2023-06-01 15:03:46 -04:00
Simon Cruanes
6d013251fe
test: add test for CCParse
2023-06-01 15:03:46 -04:00
Simon Cruanes
a8449e9847
Merge pull request #428 from c-cube/wip-pp
...
pretty printer
2023-06-01 15:03:05 -04:00
Simon Cruanes
87b10adcca
test: update the cbor tests
2023-04-19 22:11:11 -04:00
Simon Cruanes
ae7b1aef48
compat
2023-04-19 21:21:47 -04:00