猗露
e5f038d632
Merge fd1495324a into ab7d0fcc09
2025-05-06 15:59:10 +00:00
Simon Cruanes
b55d3cfe6a
tests for hashing strings
2025-05-06 10:01:31 -04:00
Simon Cruanes
4613aafb30
feat: add CCFun.with_return
Build and Test / build (push) Has been cancelled
Build and Test / format (push) Has been cancelled
2025-02-07 16:57:56 -05:00
猗露
18ffdd707b
add CCArray.of_iter
2025-01-29 11:43:38 +08:00
Alexander
bace9fe209
Fixed tests to work with older OCaml versions that lack String.for_all.
2025-01-04 10:11:03 -05:00
Alexander
1486cbf5a1
Added tests for CCChar predicates.
2025-01-04 10:00:36 -05:00
Simon Cruanes
b0f673fbbb
add more tests for CCString.{r,}take_while
2025-01-03 12:54:01 -05:00
Alexander Lucas
1e06423e87
Fixed formatting of t_string.ml tests for take_while, etc.
2025-01-01 10:33:05 -05:00
Alexander Lucas
330cba94de
added tests for take_while, rtake_while.
2025-01-01 09:46:22 -05:00
Simon Cruanes
cad41d70d6
ocamlformat
2024-12-13 00:17:53 -05:00
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