Blame tests/modules/pass_array.aug
|
Packit Service |
a2ae7a |
(* Check that we properly discard skeletons when we shift subtrees *)
|
|
Packit Service |
a2ae7a |
(* across lenses. The test shifts a subtree parsed with SND to one *)
|
|
Packit Service |
a2ae7a |
(* that is put with FST. Since the two have different skeleton types *)
|
|
Packit Service |
a2ae7a |
(* we need to ignore the skeleton that comes with it. *)
|
|
Packit Service |
a2ae7a |
module Pass_array =
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let array =
|
|
Packit Service |
a2ae7a |
let array_value = store /[a-z0-9]+/ in
|
|
Packit Service |
a2ae7a |
let fst = seq "values" . array_value . del /[ \t]+/ "\t" in
|
|
Packit Service |
a2ae7a |
let snd = seq "values" . array_value in
|
|
Packit Service |
a2ae7a |
del "(" "(" . counter "values" .
|
|
Packit Service |
a2ae7a |
[ fst ] * . [ snd ] . del ")" ")"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let lns = [ key /[a-z]+/ . del "=" "=" . array ]
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
test lns put "var=(v1 v2)" after
|
|
Packit Service |
a2ae7a |
set "var/3" "v3" = "var=(v1 v2\tv3)"
|