1
0
mirror of https://github.com/helix-editor/helix synced 2026-07-26 23:00:55 +02:00
Files
Blaž Hrastnik cd6a852c9e Add indent corpus
This will be used by the cargo indent-check xtask to validate queries,
similar to the existing indent tests in helix-core.
2026-06-07 21:29:01 +09:00

29 lines
329 B
OCaml

let process items =
let total = ref 0 in
List.iter (fun v ->
total := !total + v) items;
match !total with
| 0 -> "zero"
| _ -> "many"
let config = {
name = "test";
age = 1;
}
let nums = [
1;
2;
]
let classify x =
if x > 0 then
"pos"
else
"neg"
module M = struct
let x = 1
let y = 2
end