Skip to content

Commit 9b487fc

Browse files
committed
ST6RI-676 Added KerML Xpect test for indexing.
1 parent 44c822c commit 9b487fc

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
//*
2+
XPECT_SETUP org.omg.kerml.xpect.tests.parsing.KerMLParsingTest
3+
ResourceSet {
4+
ThisFile {}
5+
File {from ="/library/Base.kerml"}
6+
File {from ="/library/Links.kerml"}
7+
File {from ="/library/Occurrences.kerml"}
8+
File {from ="/library/Performances.kerml"}
9+
File {from ="/library/ScalarValues.kerml"}
10+
File {from ="/library/Collections.kerml"}
11+
File {from ="/library/BaseFunctions.kerml"}
12+
}
13+
Workspace {
14+
JavaProject {
15+
SrcFolder {
16+
ThisFile {}
17+
File {from ="/library/Base.kerml"}
18+
File {from ="/library/Links.kerml"}
19+
File {from ="/library/Occurrences.kerml"}
20+
File {from ="/library/Performances.kerml"}
21+
File {from ="/library/ScalarValues.kerml"}
22+
File {from ="/library/Collections.kerml"}
23+
File {from ="/library/BaseFunctions.kerml"}
24+
}
25+
}
26+
}
27+
END_SETUP
28+
*/
29+
30+
// XPECT noErrors ---> ""
31+
package Indexing {
32+
classifier A {
33+
feature b : B;
34+
}
35+
classifier B {
36+
feature c;
37+
}
38+
feature a : A[*];
39+
feature b = a#(1).b;
40+
feature c = b.c;
41+
42+
feature arr : Collections::Array {
43+
:>> dimensions = (2, 3);
44+
:>> elements = ("a", "b", "c",
45+
"x", "y", "z");
46+
}
47+
feature arr13 = arr#(1,3);
48+
feature arr22 = arr#(2,2);
49+
}

0 commit comments

Comments
 (0)