From 885398e589cccb5f7d162abae00b8edd65a07089 Mon Sep 17 00:00:00 2001
From: Adam Radziszewski <adam.radziszewski@pwr.wroc.pl>
Date: Wed, 27 Apr 2011 13:57:33 +0200
Subject: [PATCH] First test for matches (that fails now).

---
 tests/rules-data/match/is/cclmatch-1.xml      | 37 +++++++++++++++++
 tests/rules-data/match/is/cclmatch-is1.ccl    |  8 ++++
 .../rules-data/match/is/cclmatch-is1.out.xml  | 41 +++++++++++++++++++
 3 files changed, 86 insertions(+)
 create mode 100644 tests/rules-data/match/is/cclmatch-1.xml
 create mode 100644 tests/rules-data/match/is/cclmatch-is1.ccl
 create mode 100644 tests/rules-data/match/is/cclmatch-is1.out.xml

diff --git a/tests/rules-data/match/is/cclmatch-1.xml b/tests/rules-data/match/is/cclmatch-1.xml
new file mode 100644
index 0000000..3fcf541
--- /dev/null
+++ b/tests/rules-data/match/is/cclmatch-1.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE cesAna SYSTEM "xcesAnaIPI.dtd">
+<cesAna xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" type="lex disamb">
+<chunkList>
+ <chunk id="ch1" type="p">
+  <sentence>
+   <tok>
+    <orth>To</orth>
+    <lex><base>ten</base><ctag>adj:sg:nom:n:pos</ctag></lex>
+    <lex><base>ten</base><ctag>adj:sg:acc:n:pos</ctag></lex>
+    <lex><base>to</base><ctag>conj</ctag></lex>
+    <lex><base>to</base><ctag>pred</ctag></lex>
+    <lex><base>to</base><ctag>qub</ctag></lex>
+    <lex><base>to</base><ctag>subst:sg:nom:n</ctag></lex>
+    <lex><base>to</base><ctag>subst:sg:acc:n</ctag></lex>
+    <lex><base>to</base><ctag>subst:sg:voc:n</ctag></lex>
+    <ann chan="N_NOM" head="1">1</ann>
+   </tok>
+   <tok>
+    <orth>jest</orth>
+    <lex><base>być</base><ctag>fin:sg:ter:imperf</ctag></lex>
+    <ann chan="N_NOM">0</ann>
+   </tok>
+   <tok>
+    <orth>wyżyna</orth>
+    <lex><base>wyżyna</base><ctag>subst:sg:nom:f</ctag></lex>
+    <ann chan="N_NOM" head="1">2</ann>
+   </tok>
+   <tok>
+    <orth>pies</orth>
+    <lex><base>pies</base><ctag>subst:sg:nom:m2</ctag></lex>
+    <ann chan="N_NOM">2</ann>
+   </tok>
+  </sentence>
+ </chunk>
+</chunkList>
+</cesAna>
diff --git a/tests/rules-data/match/is/cclmatch-is1.ccl b/tests/rules-data/match/is/cclmatch-is1.ccl
new file mode 100644
index 0000000..d8fb4b1
--- /dev/null
+++ b/tests/rules-data/match/is/cclmatch-is1.ccl
@@ -0,0 +1,8 @@
+apply(
+  match(
+    is('N_NOM')
+  ),
+  actions(
+    mark(M, 'COPY')
+  )
+)
diff --git a/tests/rules-data/match/is/cclmatch-is1.out.xml b/tests/rules-data/match/is/cclmatch-is1.out.xml
new file mode 100644
index 0000000..1cb2b7b
--- /dev/null
+++ b/tests/rules-data/match/is/cclmatch-is1.out.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE cesAna SYSTEM "xcesAnaIPI.dtd">
+<cesAna xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" type="lex disamb">
+<chunkList>
+ <chunk id="ch1" type="p">
+  <sentence>
+   <tok>
+    <orth>To</orth>
+    <lex><base>ten</base><ctag>adj:sg:nom:n:pos</ctag></lex>
+    <lex><base>ten</base><ctag>adj:sg:acc:n:pos</ctag></lex>
+    <lex><base>to</base><ctag>conj</ctag></lex>
+    <lex><base>to</base><ctag>pred</ctag></lex>
+    <lex><base>to</base><ctag>qub</ctag></lex>
+    <lex><base>to</base><ctag>subst:sg:nom:n</ctag></lex>
+    <lex><base>to</base><ctag>subst:sg:acc:n</ctag></lex>
+    <lex><base>to</base><ctag>subst:sg:voc:n</ctag></lex>
+    <ann chan="COPY" head="1">1</ann>
+    <ann chan="N_NOM" head="1">1</ann>
+   </tok>
+   <tok>
+    <orth>jest</orth>
+    <lex><base>być</base><ctag>fin:sg:ter:imperf</ctag></lex>
+    <ann chan="COPY">0</ann>
+    <ann chan="N_NOM">0</ann>
+   </tok>
+   <tok>
+    <orth>wyżyna</orth>
+    <lex><base>wyżyna</base><ctag>subst:sg:nom:f</ctag></lex>
+    <ann chan="COPY" head="1">2</ann>
+    <ann chan="N_NOM" head="1">2</ann>
+   </tok>
+   <tok>
+    <orth>pies</orth>
+    <lex><base>pies</base><ctag>subst:sg:nom:m2</ctag></lex>
+    <ann chan="COPY">2</ann>
+    <ann chan="N_NOM">2</ann>
+   </tok>
+  </sentence>
+ </chunk>
+</chunkList>
+</cesAna>
-- 
GitLab