# Empty YAML files by themselves decode as null, following the YAML spec.
# However, for the sake of the user experience when joining with other YAML files,
# we allow unifying with them as well. This is done by decoding empty YAML as `*null | _`.

exec cue export empty.yaml
cmp stdout export-empty.stdout

exec cue export one.yaml empty.yaml two.yaml
cmp stdout export-all.stdout

-- export-empty.stdout --
null
-- export-all.stdout --
{
    "one": "one text",
    "two": "two text"
}
-- one.yaml --
one: "one text"
-- empty.yaml --
-- two.yaml --
two: "two text"
