about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorAlexander_Kabui <alexanderkabua@gmail.com>2026-10-07 03:38:06 +0300
committerAlexander_Kabui <alexanderkabua@gmail.com>2026-10-07 03:38:06 +0300
commit55a8240394739d047f2d2f7eecdf4f825c17d5c8 (patch)
tree96f5441081853c015a8a601347c5d9e4355249b7 /tests
parent9825792aed800d9011e13d665a15a564e137ceb3 (diff)
downloadgenenetwork4-55a8240394739d047f2d2f7eecdf4f825c17d5c8.tar.gz
tests/search_parity.rs (search parity): re-shape 13 weak shapes to
discriminating values; re-record Q02 (insulin) through a verified
pagination walk (50000 + 7632 = 57632 hits, truncation closed).  12
formerly zero-hit shapes now carry real matches so clause (b) bites
on 36/36 recorded shapes; Q26 re-shaped from chr:2 (>1.1M matches,
unrecordable) to the bounded chr:m (9374 hits), same chr:->XC boolean
filter grammar; Q04/Q11/Q12/Q21 retained as documented empty (the
deployed index has no positional data and XD is unpopulated).
* test/data/parity-fixtures (Q01-Q54, reduced-v1): re-baseline the
corpus with the 14 re-recorded fixtures (production snapshot
2026-10-07); parity floor PASS 54/54, clause-(b) 36/36, min Jaccard
1.000.
* test/data/parity-fixtures/reduce_fixtures.py (SHAPE_RE): tolerate
rustfmt-expanded shape! tuples; the strict regex parsed only 4/54 of
the current harness file and would fatal the generator.
* test/data/parity-fixtures/README.md: document the re-recording, the
truncation closure and the retained-empty shapes.
Diffstat (limited to 'tests')
-rw-r--r--tests/search_parity.rs43
1 files changed, 18 insertions, 25 deletions
diff --git a/tests/search_parity.rs b/tests/search_parity.rs
index dba8a87..3df49c7 100644
--- a/tests/search_parity.rs
+++ b/tests/search_parity.rs
@@ -208,7 +208,7 @@ const SHAPES: &[Shape] = &[
     ),
     shape!(
         "Q14",
-        "author:Smith",
+        "author:mulligan",
         "phenotype",
         "C-match",
         200,
@@ -248,7 +248,7 @@ const SHAPES: &[Shape] = &[
     ),
     shape!(
         "Q19",
-        "dataset:C57BL-6JxC57BL-6NJF2Publish",
+        "dataset:bxdpublish",
         "phenotype",
         "C-match",
         200,
@@ -256,7 +256,7 @@ const SHAPES: &[Shape] = &[
     ),
     shape!(
         "Q20",
-        "symbol:Lepr",
+        "symbol:insr",
         "gene",
         "C-match",
         200,
@@ -272,16 +272,16 @@ const SHAPES: &[Shape] = &[
     ),
     shape!(
         "Q22",
-        "rif:diabetes",
-        "phenotype",
+        "rif:insulin",
+        "gene",
         "C-match",
         200,
         Class::Match200
     ),
     shape!(
         "Q23",
-        "RIF:diabetes",
-        "phenotype",
+        "RIF:insulin",
+        "gene",
         "C-match",
         200,
         Class::Match200
@@ -302,7 +302,7 @@ const SHAPES: &[Shape] = &[
         200,
         Class::Match200
     ),
-    shape!("Q26", "chr:2", "gene", "C-match", 200, Class::Match200),
+    shape!("Q26", "chr:m", "gene", "C-match", 200, Class::Match200),
     shape!(
         "Q27",
         "peakchr:1",
@@ -345,8 +345,8 @@ const SHAPES: &[Shape] = &[
     ),
     shape!(
         "Q32",
-        "position:1M..1.2M",
-        "phenotype",
+        "position:1.05M..1.06M",
+        "gene",
         "C-match",
         200,
         Class::Match200
@@ -354,15 +354,15 @@ const SHAPES: &[Shape] = &[
     shape!(
         "Q33",
         "position:7500000",
-        "phenotype",
+        "gene",
         "C-match",
         200,
         Class::Match200
     ),
     shape!(
         "Q34",
-        "pos:1M..1.2M",
-        "phenotype",
+        "pos:1.05M..1.06M",
+        "gene",
         "C-match",
         200,
         Class::Match200
@@ -410,19 +410,12 @@ const SHAPES: &[Shape] = &[
     shape!(
         "Q40",
         "Hs:chr2:1M..1.2M",
-        "phenotype",
-        "C-match",
-        200,
-        Class::Match200
-    ),
-    shape!(
-        "Q41",
-        "Mm:chr1:5M",
-        "phenotype",
+        "gene",
         "C-match",
         200,
         Class::Match200
     ),
+    shape!("Q41", "Mm:chr1:5M", "gene", "C-match", 200, Class::Match200),
     shape!(
         "Q42",
         "Hs:foo:1M",
@@ -441,7 +434,7 @@ const SHAPES: &[Shape] = &[
     ),
     shape!(
         "Q44",
-        "author:Smith AND year:2010..2015",
+        "author:mulligan AND year:2010..2015",
         "phenotype",
         "C-match",
         200,
@@ -449,8 +442,8 @@ const SHAPES: &[Shape] = &[
     ),
     shape!(
         "Q45",
-        "symbol:Lepr OR description:insulin",
-        "phenotype",
+        "symbol:insr OR rif:insulin",
+        "gene",
         "C-match",
         200,
         Class::Match200