Skip to content

Commit

Permalink
Update test (#495)
Browse files Browse the repository at this point in the history
with issue #103 being closed the "pending" annotation can be removed
from the test and the proper result added.

I assume that the output of abbreviated titles is on purpose?
So, given this input:
```xml
<titleStmt xmlns='http://www.tei-c.org/ns/1.0'>
    <?prüfen?>
    <title type='abbreviated'><identifier>P1-PA<rend rend='sup'>1</rend></identifier> – Autographe Partitur</title>
    <title type='main'>Autographe Partitur</title>
    <title type='sub'>Manifestation</title>
</titleStmt>
```

the output of `eutil:getLocalizedTitle#2` will be "P1-PA1 – Autographe
Partitur".

Refs #103

## How Has This Been Tested?
by running the test XQunit suite manually

## Types of changes
- Documentation Update

## Overview
- I have updated the inline documentation accordingly.
- I have performed a self-review of my code, according to the [style
guide](https://github.com/Edirom/Edirom-Online/blob/develop/STYLE-GUIDE.md)
- I have read the
[CONTRIBUTING](https://github.com/Edirom/Edirom-Online/blob/develop/CONTRIBUTING.md)
document.
- I have added tests to cover my changes at
[testing](https://github.com/Edirom/Edirom-Online/tree/develop/testing)
- All new and existing tests passed.
  • Loading branch information
peterstadler authored Dec 10, 2024
2 parents 0b6c9f3 + c0d6cc1 commit 2faa06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/XQSuite/eutil-tests.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ declare
<identifier>P1-PA<rend rend='sup'>1</rend></identifier> – Autographe Partitur</title>
<title type='main'>Autographe Partitur</title>
<title type='sub'>Manifestation</title></titleStmt>",
"de") %test:assertEquals("unknown") %test:pending("Ticket https://github.com/Edirom/Edirom-Online/issues/103")
"de") %test:assertEquals("P1-PA1 – Autographe Partitur")
%test:args("<titleStmt xmlns='http://www.tei-c.org/ns/1.0'>
<title type='main'>Autographe Partitur</title>
<title type='sub'>Manifestation</title></titleStmt>",
Expand Down

0 comments on commit 2faa06e

Please sign in to comment.