Files
mgmt/lang/interpret_test/TestAstFunc2/empty-edge-list-0/main.mcl
James Shubin db1dbe7a27 lang: Edges should allow lists of strings
This continues the earlier patch that allowed resource names to be lists
of strings so that edges can now allow the same. This also includes a
new fancy test!
2019-01-20 17:27:40 -05:00

19 lines
364 B
Plaintext

# this must pass type unification and generate output
# single resource
test "name" {}
# single resource, defined by list variable
$names = ["hey", "there",]
test $names {}
# multiples resources, defined by list
test ["hello", "world",] {
Depend => Test[$names],
}
$morenames = ["wow", "cool", "amazing",]
test $morenames {}
Test[$names] -> Test[$morenames]