Revision: 17937
http://sourceforge.net/p/gate/code/17937
Author: markagreenwood
Date: 2014-05-09 19:20:47 +0000 (Fri, 09 May 2014)
Log Message:
-----------
and a test for notContains
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_notContains.jape
Modified: gate/trunk/src/test/gate/jape/functest/TestConstraints.java
===================================================================
--- gate/trunk/src/test/gate/jape/functest/TestConstraints.java 2014-05-09
19:16:07 UTC (rev 17936)
+++ gate/trunk/src/test/gate/jape/functest/TestConstraints.java 2014-05-09
19:20:47 UTC (rev 17937)
@@ -246,6 +246,23 @@
/**
* GATE Tao: 8.1.3
*
+ * LHS Operators: notContains
+ * @throws Exception
+ *
+ */
+ public void test813OpNotContains() throws Exception {
+ final String japeFilePath =
"/jape/test/japefiles/Req-GATETao-8.1.3-LHSOP_notContains.jape";
+ final String docFilePath = "/jape/test/docfiles/Req-GATETao-8.1.5.txt";
+
+ String[] expectedResults = {"OpNotContains","OpNotContains"};
+ int[] expectedStartOffsets = {0,12};
+ int[] expectedEndOffsets = {4,20};
+ 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_notContains.jape
===================================================================
---
gate/trunk/src/test/gate/resources/jape/test/japefiles/Req-GATETao-8.1.3-LHSOP_notContains.jape
(rev 0)
+++
gate/trunk/src/test/gate/resources/jape/test/japefiles/Req-GATETao-8.1.3-LHSOP_notContains.jape
2014-05-09 19:20:47 UTC (rev 17937)
@@ -0,0 +1,7 @@
+Phase: Test
+Options: control = appelt
+
+Rule:OpNotWithin
+({TempPerson notContains Lookup}):bind
+-->
+:bind.SomeAnnotation = {rule="OpNotContains"}
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