From da60d566e81a383f83cf35a0893e9f0c6e6d5ae8 Mon Sep 17 00:00:00 2001
From: Adam Radziszewski <adam.radziszewski@pwr.wroc.pl>
Date: Tue, 15 Feb 2011 18:11:18 +0100
Subject: [PATCH] Another test for unify.

---
 tests/rules-data/unify2/agr.ccl     |  5 +++
 tests/rules-data/unify2/agr.out.xml | 34 +++++++++++++++++++++
 tests/rules-data/unify2/in.xml      | 47 +++++++++++++++++++++++++++++
 3 files changed, 86 insertions(+)
 create mode 100644 tests/rules-data/unify2/agr.ccl
 create mode 100644 tests/rules-data/unify2/agr.out.xml
 create mode 100644 tests/rules-data/unify2/in.xml

diff --git a/tests/rules-data/unify2/agr.ccl b/tests/rules-data/unify2/agr.ccl
new file mode 100644
index 0000000..d0eb115
--- /dev/null
+++ b/tests/rules-data/unify2/agr.ccl
@@ -0,0 +1,5 @@
+rules(
+	rule("agr3",
+		unify(0, 2, {nmb, gnd, cas})
+	)
+)
diff --git a/tests/rules-data/unify2/agr.out.xml b/tests/rules-data/unify2/agr.out.xml
new file mode 100644
index 0000000..b697447
--- /dev/null
+++ b/tests/rules-data/unify2/agr.out.xml
@@ -0,0 +1,34 @@
+<?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>
+  <chunk type="s">
+   <tok>
+    <orth>nie</orth>
+    <lex><base>nie</base><ctag>qub</ctag></lex>
+    <lex><base>on</base><ctag>ppron3:sg:acc:n:ter:praep</ctag></lex>
+   </tok>
+   <tok>
+    <orth>czujÄ™</orth>
+    <lex><base>czuć</base><ctag>fin:sg:pri:imperf</ctag></lex>
+   </tok>
+   <tok>
+    <orth>już</orth>
+    <lex><base>już</base><ctag>qub</ctag></lex>
+   </tok>
+   <tok>
+    <orth>całym</orth>
+   <lex><base>cały</base><ctag>adj:sg:inst:m1:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:inst:m2:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:inst:m3:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:inst:n:pos</ctag></lex>
+  </tok>
+   <tok>
+    <orth>sobÄ…</orth>
+    <lex><base>siÄ™</base><ctag>siebie:inst</ctag></lex>
+   </tok>
+  </chunk>
+ </chunk>
+</chunkList>
+</cesAna>
diff --git a/tests/rules-data/unify2/in.xml b/tests/rules-data/unify2/in.xml
new file mode 100644
index 0000000..4103c66
--- /dev/null
+++ b/tests/rules-data/unify2/in.xml
@@ -0,0 +1,47 @@
+<?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>
+  <chunk type="s">
+   <tok>
+    <orth>nie</orth>
+    <lex><base>nie</base><ctag>qub</ctag></lex>
+    <lex><base>on</base><ctag>ppron3:pl:acc:f:ter:praep</ctag></lex>
+    <lex><base>on</base><ctag>ppron3:pl:acc:m2:ter:praep</ctag></lex>
+    <lex><base>on</base><ctag>ppron3:pl:acc:m3:ter:praep</ctag></lex>
+    <lex><base>on</base><ctag>ppron3:pl:acc:n:ter:praep</ctag></lex>
+    <lex><base>on</base><ctag>ppron3:sg:acc:n:ter:praep</ctag></lex>
+   </tok>
+   <tok>
+    <orth>czujÄ™</orth>
+    <lex><base>czuć</base><ctag>fin:sg:pri:imperf</ctag></lex>
+   </tok>
+   <tok>
+    <orth>już</orth>
+    <lex><base>już</base><ctag>qub</ctag></lex>
+   </tok>
+   <tok>
+    <orth>całym</orth>
+    <lex><base>cały</base><ctag>adj:pl:dat:f:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:pl:dat:m1:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:pl:dat:m2:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:pl:dat:m3:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:pl:dat:n:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:inst:m1:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:inst:m2:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:inst:m3:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:inst:n:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:loc:m1:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:loc:m2:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:loc:m3:pos</ctag></lex>
+    <lex><base>cały</base><ctag>adj:sg:loc:n:pos</ctag></lex>
+   </tok>
+   <tok>
+    <orth>sobÄ…</orth>
+    <lex><base>siÄ™</base><ctag>siebie:inst</ctag></lex>
+   </tok>
+  </chunk>
+ </chunk>
+</chunkList>
+</cesAna>
-- 
GitLab