mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00
Removed test case triggering new validation rule
The validation rule was introduced in
73fd155426
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
This commit is contained in:
parent
88b34d57c8
commit
127b2af797
2 changed files with 1 additions and 16 deletions
|
@ -18,8 +18,7 @@ Model: ('1'? value = ('mykeyword1' | STRING | NestedDatatype | Datatype | ID
|
|||
| ('4' value = NestedDatatype)
|
||||
| ('4+' multiValue += NestedDatatype)
|
||||
|
|
||||
('content' children = Child)
|
||||
('ref' ref = ([Child1|STRING] | [Child2|ID]))?;
|
||||
('content' children = Child);
|
||||
|
||||
Datatype: ID '-' ID;
|
||||
|
||||
|
|
|
@ -388,18 +388,4 @@ public class Bug250313Test extends AbstractXtextTests {
|
|||
// if this is a bug, all assertions 'assertEquals(1, convertCallCount)' have to be increased
|
||||
assertEquals(lexerRule, 0, convertCallCount);
|
||||
}
|
||||
|
||||
@Test public void testChild1_01() throws Exception {
|
||||
// tests only, if crossrefs in alternatives work
|
||||
Model model = (Model) getModel("content str ref 'str'");
|
||||
assertEquals("str", model.getRef().getName());
|
||||
assertEquals(lexerRule, 2, convertCallCount);
|
||||
}
|
||||
|
||||
@Test public void testChild2_01() throws Exception {
|
||||
// tests only, if crossrefs in alternatives work
|
||||
Model model = (Model) getModel("content 'str' ref str");
|
||||
assertEquals("str", model.getRef().getName());
|
||||
assertEquals(lexerRule, 2, convertCallCount);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue