Revision 5f08d366
Added by Andreas Müller over 2 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/format/reference/NomenclaturalSourceFormatterTest.java | ||
---|---|---|
276 | 276 |
//#6496 don't show pages in nom.ref. citations |
277 | 277 |
bookSection1.setPages("35-39"); |
278 | 278 |
Assert.assertEquals("in TT., My book, ser. 2: 55. 1975", formatter.format((Reference)bookSection1, detail1)); |
279 |
//separator if not a number only |
|
280 |
// ... letter |
|
281 |
book1.setSeriesPart("S\u00E9r. 2"); |
|
282 |
Assert.assertEquals("in TT., My book S\u00E9r. 2: 55. 1975", formatter.format((Reference)bookSection1, detail1)); |
|
283 |
// ... not a letter |
|
284 |
book1.setSeriesPart("-abc2"); |
|
285 |
Assert.assertEquals("in TT., My book-abc2: 55. 1975", formatter.format((Reference)bookSection1, detail1)); |
|
279 | 286 |
} |
280 | 287 |
|
281 | 288 |
@Test |
Also available in: Unified diff
ref #9914 add space before seriesPart in nom.refs.