Skip to content

Commit

Permalink
Add tests for s-103
Browse files Browse the repository at this point in the history
  • Loading branch information
apasel422 committed Jul 15, 2024
1 parent a394344 commit 7ba6e44
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/lint/semantic/s-103/golden/s-103-out.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
s-103 [Manual Review] chapter-1.xhtml Probable missing semantics for a roman I
numeral.
King Charles I
King Edward I
King George I
King Henry I
King James I
King William I
King Charles I
King Edward I
King George I
King Henry I
King James I
King William I
Charles I’s
Edward I’s
George I’s
Henry I’s
James I’s
William I’s
Charles I’s
Edward I’s
George I’s
Henry I’s
James I’s
William I’s
31 changes: 31 additions & 0 deletions tests/lint/semantic/s-103/in/src/epub/text/chapter-1.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/" xml:lang="en-GB">
<head>
<title>I</title>
</head>
<body epub:type="bodymatter z3998:fiction">
<section id="chapter-1" epub:type="chapter">
<h2 epub:type="ordinal z3998:roman">I</h2>
<p>Charles I’s.</p>
<p>Edward I’s.</p>
<p>George I’s.</p>
<p>Henry I’s.</p>
<p>James I’s.</p>
<p>William I’s.</p>
<p>King Charles I.</p>
<p>King Edward I.</p>
<p>King George I.</p>
<p>King Henry I.</p>
<p>King James I.</p>
<p>King William I.</p>
<!-- these erroneously result in two matches each
due to the separate searches for the King prefix and possessive suffix -->
<p>King Charles I’s.</p>
<p>King Edward I’s.</p>
<p>King George I’s.</p>
<p>King Henry I’s.</p>
<p>King James I’s.</p>
<p>King William I’s.</p>
</section>
</body>
</html>

0 comments on commit 7ba6e44

Please sign in to comment.