Skip to content

Commit

Permalink
RP - populate test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-atherden committed Dec 2, 2024
1 parent b01019a commit ad0ca4d
Show file tree
Hide file tree
Showing 16 changed files with 196 additions and 16 deletions.
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-1/fail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Rr]eproduced from')
Message: The caption for contains the text 'reproduced from', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Reproduced from Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-1/pass.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Rr]eproduced from')
Message: The caption for contains the text 'reproduced from', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>See Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-2/fail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Rr]eproduced [Ww]ith [Pp]ermission')
Message: The caption for contains the text 'reproduced with permission', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Reproduced with permission from Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-2/pass.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Rr]eproduced [Ww]ith [Pp]ermission')
Message: The caption for contains the text 'reproduced with permission', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-3/fail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Aa]dapted from|[Aa]dapted with')
Message: The caption for contains the text 'adapted from ...', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Adapted from Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-3/pass.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Aa]dapted from|[Aa]dapted with')
Message: The caption for contains the text 'adapted from ...', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-4/fail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Rr]eprinted from')
Message: The caption for contains the text 'reprinted from', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Reprinted from Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-4/pass.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Rr]eprinted from')
Message: The caption for contains the text 'reprinted from', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-5/fail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Rr]eprinted [Ww]ith [Pp]ermission')
Message: The caption for contains the text 'reprinted with permission', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Reprinted with permission from Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-5/pass.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Rr]eprinted [Ww]ith [Pp]ermission')
Message: The caption for contains the text 'reprinted with permission', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-6/fail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Mm]odified from')
Message: The caption for contains the text 'modified from', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Modified from Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-6/pass.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Mm]odified from')
Message: The caption for contains the text 'modified from', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-7/fail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Mm]odified [Ww]ith')
Message: The caption for contains the text 'modified with', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Modified with permish from Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
14 changes: 13 additions & 1 deletion test/tests/rp/fig-permissions-check/reproduce-test-7/pass.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Mm]odified [Ww]ith')
Message: The caption for contains the text 'modified with', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<body>
<fig id="fig1">
<label>Figure 1.</label>
<caption>
<title>Title.</title>
<p>Smith et al., 19992</p>
</caption>
</fig>
</body>
</article>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Uu]sed [Ww]ith [Pp]ermission')
Message: The caption for contains the text 'used with permission', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0/">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<fig>
<caption>Panel (<bold>B</bold>) is used with permission from Drs. McCarroll and Krienen (<ext-link ext-link-type="uri" xlink:href="http://interneuron.mccarrolllab.org/">http://interneuron.mccarrolllab.org/)</ext-link>.</caption>
</fig>
</article>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
<!--Context: fig[not(descendant::permissions)]|media[@mimetype='video' and not(descendant::permissions)]|table-wrap[not(descendant::permissions)]|supplementary-material[not(descendant::permissions)]
Test: report matches(caption[1],'[Uu]sed [Ww]ith [Pp]ermission')
Message: The caption for contains the text 'used with permission', but has no permissions. Is this correct? -->
<root xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><article/></root>
<root xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:ali="http://www.niso.org/schemas/ali/1.0/">
<article><front><journal-meta><journal-id>eLife</journal-id></journal-meta></front>
<fig>
<caption>Panel (<bold>B</bold>) is a gift from Drs. McCarroll and Krienen (<ext-link ext-link-type="uri" xlink:href="http://interneuron.mccarrolllab.org/">http://interneuron.mccarrolllab.org/)</ext-link>.</caption>
</fig>
</article>
</root>

0 comments on commit ad0ca4d

Please sign in to comment.