Project

General

Profile

« Previous | Next » 

Revision e6883603

Added by Andreas Müller over 5 years ago

ref #7800 fix tests with special characters

View differences:

cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/UTF8.java
20 20
    a_UMLAUT("\u00E4"),   //small a umlaut, latin small letter a with diaeresis
21 21
	O_UMLAUT("\u00F6"),   //small o umlaut, latin small letter o with diaeresis
22 22
    U_UMLAUT("\u00FC"),   //small u umlaut, latin small letter u with diaeresis
23
    SMALL_O_WITH_STROKE("\u00F8"),   //"Danish" o
23 24
	NO_BREAK_SPACE("\u00A0"),
24 25
	POLISH_L("\u0142"),
25 26
	SMALL_A_ACUTE("\u00E1"),
cdmlib-model/src/test/java/eu/etaxonomy/cdm/strategy/parser/NonViralNameParserImplTest.java
1964 1964
        Assert.assertTrue("pSoftArticleReference", matches);
1965 1965
        //only for debugging end
1966 1966

  
1967
        parseStr = "Corallorhiza trifida subsp. virescens (Drejer) Løjtnant in Fl. & Fauna (Esbjerg) 101: 71. 1996";
1967
        parseStr = "Corallorhiza trifida subsp. virescens (Drejer) L\u00F8jtnant in Fl. & Fauna (Esbjerg) 101: 71. 1996";
1968 1968
        name = parser.parseReferencedName(parseStr);
1969 1969
        Assert.assertFalse("Name should be parsable", name.isProtectedTitleCache());
1970 1970
        nomRef = name.getNomenclaturalReference();
......
2016 2016
        matcher = seriesPattern.matcher("Ser. C");
2017 2017
        Assert.assertTrue("", matcher.matches());
2018 2018

  
2019
        matcher = seriesPattern.matcher("Sér. B 1");
2019
        matcher = seriesPattern.matcher("S\u00E9r. B 1");
2020 2020
        Assert.assertTrue("", matcher.matches());
2021 2021

  
2022 2022
        matcher = seriesPattern.matcher("Jerusalem Ser.");

Also available in: Unified diff