Commit graph

210 commits

Author SHA1 Message Date
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
Simon Cruanes
679534597d
fix(pp): slicing needs attention 2023-04-19 21:21:46 -04:00
Simon Cruanes
91a2ecee4a
Pp: rename wrap to ext; more doc, more combinators 2023-04-19 21:21:46 -04:00
Simon Cruanes
4d77a17029
Pp: expose generic output; simplify extensions 2023-04-19 21:21:45 -04:00
Simon Cruanes
d36c57459e
feat(Pp): add wrap for extension nodes 2023-04-19 21:21:45 -04:00
Simon Cruanes
cea844fdde
add tests for Pp 2023-04-19 21:21:44 -04:00
Simon Cruanes
c5c72e0a50
move cbor tests 2023-04-19 21:21:43 -04:00
Fardale
ff3e838553 CCArray(feat): Add max,argmax,min,argmin and their _exn conterpart 2023-04-12 11:52:57 +02:00
Simon Cruanes
4a46fa4d71
add a op test for Fun_vec 2023-04-09 14:59:39 -04:00
Simon Cruanes
d985019fe1
compat 4.03 2023-04-07 12:27:55 -04:00
Simon Cruanes
84173382db
feat(CCParse): add take_until_success
this reads a slice using the given parser to parse the end delimiter
(e.g "end gpg signature" 😉)
2023-04-07 11:45:12 -04:00
Simon Cruanes
0b72812a55
more tests for Vec 2023-03-13 19:34:20 -04:00
Simon Cruanes
83009aac10
feat(cchash): native FNV hash for int64/int32 2023-03-13 15:37:00 -04:00
Samuel Hym
f58310913a Allow explicit fallback to bytecode for various tests
Relax the requirements for the tests, to fall back on the bytecode
version when the native version is not available. Otherwise the tests
will fail on bytecode-only architectures.
2022-12-22 23:08:14 +01:00
Samuel Hym
1367d5b855 Rewrite a test so that it passes also on the bytecode backend
Rewrite a test to shorten the lexical scope of the string it builds
because, in the bytecode backend, a variable is deemed live at least as
long as its lexical scope.

Reference: https://github.com/ocaml/ocaml/pull/10071
2022-12-22 23:08:14 +01:00
Simon Cruanes
6a415e963a
fix(cbor): use int64 as main int type 2022-07-06 22:27:24 -04:00