Revision: 17936
http://sourceforge.net/p/gate/code/17936
Author: markagreenwood
Date: 2014-05-09 19:16:07 +0000 (Fri, 09 May 2014)
Log Message:
-----------
a test for notWithin
Modified Paths:
--------------
gate/trunk/src/test/gate/jape/functest/TestConstraints.java
Added Paths:
-----------
gate/trunk/src/test/gate/resources/jape/test/japefiles/Req-GATETao-8.1.3-LHSOP_notWithin.jape
Modified: gate/trunk/src/test/gate/jape/functest/TestConstraints.java
===================================================================
--- gate/trunk/src/test/gate/jape/functest/TestConstraints.java 2014-05-09
08:56:35 UTC (rev 17935)
+++ gate/trunk/src/test/gate/jape/functest/TestConstraints.java 2014-05-09
19:16:07 UTC (rev 17936)
@@ -229,6 +229,23 @@
/**
* GATE Tao: 8.1.3
*
+ * LHS Operators: notWithin
+ * @throws Exception
+ *
+ */
+ public void test813OpNotWithin() throws Exception {
+ final String japeFilePath =
"/jape/test/japefiles/Req-GATETao-8.1.3-LHSOP_notWithin.jape";
+ final String docFilePath = "/jape/test/docfiles/Req-GATETao-8.1.5.txt";
+
+ String[] expectedResults = {"OpNotWithin"};
+ int[] expectedStartOffsets = {5};
+ int[] expectedEndOffsets = {11};
+ doCommonTest(japeFilePath, docFilePath, expectedResults,
expectedStartOffsets, expectedEndOffsets, annoCreator815MultipleActions);
+ }
+
+ /**
+ * GATE Tao: 8.1.3
+ *
* LHS Operators: contains & within in document with no annotations
* @throws Exception
*
Added:
gate/trunk/src/test/gate/resources/jape/test/japefiles/Req-GATETao-8.1.3-LHSOP_notWithin.jape
===================================================================
---
gate/trunk/src/test/gate/resources/jape/test/japefiles/Req-GATETao-8.1.3-LHSOP_notWithin.jape
(rev 0)
+++
gate/trunk/src/test/gate/resources/jape/test/japefiles/Req-GATETao-8.1.3-LHSOP_notWithin.jape
2014-05-09 19:16:07 UTC (rev 17936)
@@ -0,0 +1,7 @@
+Phase: Test
+Options: control = appelt
+
+Rule:OpNotWithin
+({Lookup notWithin TempPerson}):bind
+-->
+:bind.SomeAnnotation = {rule="OpNotWithin"}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs