-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding xpect tests for cyclic hierachy
- Loading branch information
Showing
5 changed files
with
23 additions
and
11 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...tests/src/org/uqbar/project/wollok/tests/xpect/ClassInherintingFromCyclicHierarchy.wlk.xt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* XPECT_SETUP org.uqbar.project.wollok.tests.xpect.WollokXPectTest END_SETUP */ | ||
|
||
// XPECT errors --> "Infinite Cycle hierarchy" at "B" | ||
class A inherits B { } | ||
|
||
// XPECT errors --> "Infinite Cycle hierarchy" at "A" | ||
class B inherits A { } | ||
|
5 changes: 0 additions & 5 deletions
5
...ests/src/org/uqbar/project/wollok/tests/xpect/ClassInherintingFromCyclicHierarchy.wlk2.xt
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...qbar/project/wollok/tests/xpect/ClassInherintingFromCyclicHierarchyMultipleClasses.wlk.xt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* XPECT_SETUP org.uqbar.project.wollok.tests.xpect.WollokXPectTest END_SETUP */ | ||
|
||
// XPECT errors --> "Infinite Cycle hierarchy" at "B" | ||
class A inherits B { } | ||
|
||
// XPECT errors --> "Infinite Cycle hierarchy" at "C" | ||
class B inherits C { } | ||
|
||
// XPECT errors --> "Infinite Cycle hierarchy" at "E" | ||
class C inherits E { } | ||
|
||
// XPECT errors --> "Infinite Cycle hierarchy" at "A" | ||
class E inherits A { } |
7 changes: 2 additions & 5 deletions
7
...ollok.tests/src/org/uqbar/project/wollok/tests/xpect/ClassInherintingFromSameClass.wlk.xt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
/* XPECT_SETUP org.uqbar.project.wollok.tests.xpect.WollokXPectTest END_SETUP */ | ||
|
||
// XPECT errors --> "Infinite Cycle hierarchy" at "class A inherits B { }" | ||
class A inherits B { } | ||
|
||
// XPECT errors --> "Infinite Cycle hierarchy" at "class B inherits A { }" | ||
class B inherits A { } | ||
// XPECT errors --> "Infinite Cycle hierarchy" at "B" | ||
class B inherits B { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters