Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordwagelaar2011-12-08 04:28:08 -0500
committerdwagelaar2011-12-08 04:28:08 -0500
commit032e9322b248b599d565d8d863b5bb6ead26e8ec (patch)
tree13c8bcc020170ca93f5f89c3687317afbbd65bcc /tests/org.eclipse.m2m.atl.emftvm.tests/test-data/TestQuery.atl
parentdab90c6c3239d44ae889e02fea45a12c96cdec01 (diff)
downloadorg.eclipse.atl-032e9322b248b599d565d8d863b5bb6ead26e8ec.tar.gz
org.eclipse.atl-032e9322b248b599d565d8d863b5bb6ead26e8ec.tar.xz
org.eclipse.atl-032e9322b248b599d565d8d863b5bb6ead26e8ec.zip
Moved from plugins to tests.
Diffstat (limited to 'tests/org.eclipse.m2m.atl.emftvm.tests/test-data/TestQuery.atl')
-rw-r--r--tests/org.eclipse.m2m.atl.emftvm.tests/test-data/TestQuery.atl11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/org.eclipse.m2m.atl.emftvm.tests/test-data/TestQuery.atl b/tests/org.eclipse.m2m.atl.emftvm.tests/test-data/TestQuery.atl
new file mode 100644
index 00000000..8abe32a7
--- /dev/null
+++ b/tests/org.eclipse.m2m.atl.emftvm.tests/test-data/TestQuery.atl
@@ -0,0 +1,11 @@
+-- @atlcompiler emftvm
+-- @nsURI EMFTVM=http://www.eclipse.org/m2m/atl/2011/EMFTVM
+-- Tests ATL compilation strategy
+query TestQuery = EMFTVM!Operation.allInstances()->select(r|r.test()).debug('TestQuery');
+
+uses TestLib;
+uses NativeTest;
+
+helper context EMFTVM!Operation def : test() : Boolean =
+ (super.test() and not self.static).debug('TestQuery::Operation.test() (random = ' +
+ thisModule.random().toString() + ')'); \ No newline at end of file

Back to the top