Skip to content

Commit

Permalink
Merge pull request #393 from GSA/override-xspec-testing
Browse files Browse the repository at this point in the history
Update xspec.sch
  • Loading branch information
volpet2014 authored Jun 14, 2023
2 parents 55096a7 + b15a9df commit 774003f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/validations/styleguides/xspec.sch
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@
queryBinding="xslt2"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xmlns:sqf="http://www.schematron-quickfix.com/validator/process"
xmlns:unit="http://us.gov/testing/unit-testing"
xmlns:x="http://www.jenitennison.com/xslt/xspec">

<sch:ns
prefix="sch"
uri="http://purl.oclc.org/dsdl/schematron" />

<sch:ns
prefix="unit"
uri="http://us.gov/testing/unit-testing" />

<sch:ns
prefix="x"
Expand Down Expand Up @@ -66,22 +71,16 @@
diagnostics="lacks-affirmative-test"
id="has-affirmative-test"
role="warning"
test="
(: FIXME: force true until missing XSpec test designation is complete :)
true() or
(every $id in $schematron//sch:assert/@id
satisfies $id = //x:expect-not-assert/@id)">Every Schematron assertion has a counterpart affirmative
test="every $id in $schematron//sch:assert[not(@unit:override-xspec)]/@id satisfies $id =
//x:expect-not-assert/@id">Every Schematron assertion has a counterpart affirmative
test.</sch:assert>

<sch:assert
diagnostics="lacks-negative-test"
id="has-negative-test"
role="warning"
test="
(: FIXME: force true until missing XSpec test designation is complete :)
true() or
(every $id in $schematron//sch:assert/@id
satisfies $id = //x:expect-assert/@id)">Every Schematron assertion has a counterpart negative
test="every $id in $schematron//sch:assert[not(@unit:override-xspec)]/@id satisfies $id =
//x:expect-assert/@id">Every Schematron assertion has a counterpart negative
test.</sch:assert>

</sch:rule>
Expand Down

0 comments on commit 774003f

Please sign in to comment.