]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Select3.scl
Merge commit '31664b6'
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Select3.scl
1 import "StandardLibrary"
2 import "Minigraph"
3
4 main = withGraph do
5     a = resource "a"
6     b = map resource ["b0", "b1", "b2", "b3", "b4"]
7     r = map resource ["r0", "r1"]
8     
9     enforce
10         Statement a (r!0) (b!0)
11         Statement a (r!0) (b!1)
12         Statement a (r!1) (b!4)
13         Statement (b!1) (r!1) (b!3)
14         Statement (b!1) (r!0) (b!2)
15     sort $ map uriOf $ select ?x where 
16         Statement a (r!0) (_ : Resource { #r1 = ?x })
17 --
18 [b3]