Skip to content

Commit 93fa096

Browse files
committed
ST6RI-893 Added KerML Xpect parsing test for association w/ const ends.
1 parent 790cd24 commit 93fa096

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

kerml/src/examples/Simple Tests/Associations.kerml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ package Associations {
1212
end [0..*] feature y1 redefines y;
1313
}
1414

15+
assoc struct C {
16+
const end [1] feature a;
17+
const end feature b;
18+
}
19+
1520
metaclass M;
1621
assoc XY {
1722
end [0..1] feature x : X {

org.omg.kerml.xpect.tests/src/org/omg/kerml/xpect/tests/parsing/ParsingTests_Associations.kerml.xt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ package Associations {
4040
end [0..*] feature y1 redefines y;
4141
}
4242

43+
assoc struct C {
44+
const end [1] feature a;
45+
const end feature b;
46+
}
47+
4348
metaclass M;
4449
assoc XY {
4550
// Ensure that the owned cross feature is typed correctly,

0 commit comments

Comments
 (0)