From 4a8f58d5ed0c0c28115e0b56221110b5e8753a8c Mon Sep 17 00:00:00 2001 From: Adam Radziszewski <adam.radziszewski@pwr.wroc.pl> Date: Tue, 15 Feb 2011 17:37:42 +0100 Subject: [PATCH] tests for unification (that fail) --- tests/rules-data/unify/agreed.ccl | 9 ++++ tests/rules-data/unify/agreed.out.xml | 58 +++++++++++++++++++++ tests/rules-data/unify/kobieta.xml | 72 +++++++++++++++++++++++++++ 3 files changed, 139 insertions(+) create mode 100644 tests/rules-data/unify/agreed.ccl create mode 100644 tests/rules-data/unify/agreed.out.xml create mode 100644 tests/rules-data/unify/kobieta.xml diff --git a/tests/rules-data/unify/agreed.ccl b/tests/rules-data/unify/agreed.ccl new file mode 100644 index 0000000..77fb3e4 --- /dev/null +++ b/tests/rules-data/unify/agreed.ccl @@ -0,0 +1,9 @@ +rules( + rule("unify3-case", + not( + equal(cas[0], {}), + equal(cas[2], {}) + ), + unify(0, 2, {nmb, gnd, cas}) + ) +) diff --git a/tests/rules-data/unify/agreed.out.xml b/tests/rules-data/unify/agreed.out.xml new file mode 100644 index 0000000..9b22300 --- /dev/null +++ b/tests/rules-data/unify/agreed.out.xml @@ -0,0 +1,58 @@ +<?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>Kobieta</orth> + <lex><base>kobieta</base><ctag>subst:sg:nom:f</ctag></lex> + </tok> + <tok> + <orth>nie</orth> + <lex><base>nie</base><ctag>qub</ctag></lex> + </tok> + <tok> + <orth>bita</orth> + <lex><base>bity</base><ctag>adj:sg:nom:f:pos</ctag></lex> + <lex><base>bić</base><ctag>ppas:sg:nom:f:imperf:aff</ctag></lex> + </tok> + <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>ten</base><ctag>adj:sg:voc:n:pos</ctag></lex> + <lex><base>to</base><ctag>conj</ctag></lex> + </tok> + <tok> + <orth>jak</orth> + <lex><base>jak</base><ctag>conj</ctag></lex> + <lex><base>jak</base><ctag>subst:sg:nom:m1</ctag></lex> + <lex><base>jak</base><ctag>subst:sg:nom:m2</ctag></lex> + <lex><base>jak</base><ctag>subst:sg:nom:m3</ctag></lex> + <lex><base>jaka</base><ctag>subst:pl:gen:f</ctag></lex> + </tok> + <tok> + <orth>kosa</orth> + <lex><base>kosa</base><ctag>subst:sg:nom:f</ctag></lex> + <lex><base>kosy</base><ctag>adj:sg:nom:f:pos</ctag></lex> + <lex><base>kosy</base><ctag>adj:sg:voc:f:pos</ctag></lex> + </tok> + <tok> + <orth>nie</orth> + <lex><base>nie</base><ctag>qub</ctag></lex> + </tok> + <tok> + <orth>klepana</orth> + <lex><base>klepać</base><ctag>ppas:sg:nom:f:imperf:aff</ctag></lex> + <lex><base>klepać</base><ctag>ppas:sg:voc:f:imperf:aff</ctag></lex> + </tok> + <ns/> + <tok> + <orth>!</orth> + <lex><base>!</base><ctag>interp</ctag></lex> + </tok> + </chunk> + </chunk> +</chunkList> +</cesAna> diff --git a/tests/rules-data/unify/kobieta.xml b/tests/rules-data/unify/kobieta.xml new file mode 100644 index 0000000..2081f5a --- /dev/null +++ b/tests/rules-data/unify/kobieta.xml @@ -0,0 +1,72 @@ +<?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>Kobieta</orth> + <lex><base>kobieta</base><ctag>subst:sg:nom:f</ctag></lex> + </tok> + <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> + <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:f:ter:praep</ctag></lex> + <lex><base>on</base><ctag>ppron3:pl:acc:n:ter:praep</ctag></lex> + </tok> + <tok> + <orth>bita</orth> + <lex><base>bity</base><ctag>adj:sg:nom:f:pos</ctag></lex> + <lex><base>bity</base><ctag>adj:sg:voc:f:pos</ctag></lex> + <lex><base>bić</base><ctag>ppas:sg:nom:f:imperf:aff</ctag></lex> + <lex><base>bić</base><ctag>ppas:sg:voc:f:imperf:aff</ctag></lex> + </tok> + <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>ten</base><ctag>adj:sg:voc:n:pos</ctag></lex> + <lex><base>to</base><ctag>conj</ctag></lex> + </tok> + <tok> + <orth>jak</orth> + <lex><base>jak</base><ctag>conj</ctag></lex> + <lex><base>jak</base><ctag>subst:sg:nom:m1</ctag></lex> + <lex><base>jak</base><ctag>subst:sg:nom:m2</ctag></lex> + <lex><base>jak</base><ctag>subst:sg:nom:m3</ctag></lex> + <lex><base>jaka</base><ctag>subst:pl:gen:f</ctag></lex> + </tok> + <tok> + <orth>kosa</orth> + <lex><base>kos</base><ctag>subst:sg:gen:m2</ctag></lex> + <lex><base>kos</base><ctag>subst:sg:acc:m2</ctag></lex> + <lex><base>kosa</base><ctag>subst:sg:nom:f</ctag></lex> + <lex><base>kosy</base><ctag>adj:sg:nom:f:pos</ctag></lex> + <lex><base>kosy</base><ctag>adj:sg:voc:f:pos</ctag></lex> + </tok> + <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> + <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:f:ter:praep</ctag></lex> + <lex><base>on</base><ctag>ppron3:pl:acc:n:ter:praep</ctag></lex> + </tok> + <tok> + <orth>klepana</orth> + <lex><base>klepać</base><ctag>ppas:sg:nom:f:imperf:aff</ctag></lex> + <lex><base>klepać</base><ctag>ppas:sg:voc:f:imperf:aff</ctag></lex> + </tok> + <ns/> + <tok> + <orth>!</orth> + <lex><base>!</base><ctag>interp</ctag></lex> + </tok> + </chunk> + </chunk> +</chunkList> +</cesAna> -- GitLab