Examples of parseTemplates()


Examples of info.bliki.wiki.model.WikiModel.parseTemplates()

    @Test public void testFormatnum002() {
        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:987,654,321.654321|R}}", false)).isEqualTo("9.87654321654321E8");

        WikiModel germanWikiModel = newWikiTestModel(Locale.GERMAN);
        assertThat(germanWikiModel.parseTemplates("{{formatnum:987.654.321,654321|R}}", false)).isEqualTo("9.87654321654321E8");
    }

    @Test public void testFormatnum003() {
        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:90}}")).isEqualTo("90");
View Full Code Here

Examples of info.bliki.wiki.model.WikiModel.parseTemplates()

    @Test public void testFormatnum003() {
        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:90}}")).isEqualTo("90");
        WikiModel germanWikiModel = newWikiTestModel(Locale.GERMAN);
        assertThat(germanWikiModel.parseTemplates("{{formatnum:90}}")).isEqualTo("90");
    }

    @Test public void testFormatnum004() {
        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:90.}}")).isEqualTo("90.");
View Full Code Here

Examples of info.bliki.wiki.model.WikiModel.parseTemplates()

    @Test public void testFormatnum004() {
        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:90.}}")).isEqualTo("90.");
        WikiModel germanWikiModel = newWikiTestModel(Locale.GERMAN);
        assertThat(germanWikiModel.parseTemplates("{{formatnum:90.}}")).isEqualTo("90,");
    }

    @Test public void testFormatnum005() {
        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:90.0}}")).isEqualTo("90.0");
View Full Code Here

Examples of info.bliki.wiki.model.WikiModel.parseTemplates()

    @Test public void testFormatnum005() {
        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:90.0}}")).isEqualTo("90.0");
        WikiModel germanWikiModel = newWikiTestModel(Locale.GERMAN);
        assertThat(germanWikiModel.parseTemplates("{{formatnum:90.0}}")).isEqualTo("90,0");
    }

    @Test public void testFormatnum006() {
        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:90.000}}")).isEqualTo("90.000");
View Full Code Here

Examples of info.bliki.wiki.model.WikiModel.parseTemplates()

    @Test public void testFormatnum006() {
        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:90.000}}")).isEqualTo("90.000");
        assertThat(wikiModel.parseTemplates("{{formatnum:90.000000000000000000000000000000000000}}")).isEqualTo("90.000000000000000000000000000000000000");
        WikiModel germanWikiModel = newWikiTestModel(Locale.GERMAN);
        assertThat(germanWikiModel.parseTemplates("{{formatnum:90.000}}")).isEqualTo("90,000");
        assertThat(germanWikiModel.parseTemplates("{{formatnum:90.000000000000000000000000000000000000}}")).isEqualTo("90,000000000000000000000000000000000000");
    }

    @Test public void testPlural001() {
        assertThat(wikiModel.parseTemplates("{{plural:n|is|are}}", false)).isEqualTo("is");
View Full Code Here

Examples of info.bliki.wiki.model.WikiModel.parseTemplates()

        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:90.000}}")).isEqualTo("90.000");
        assertThat(wikiModel.parseTemplates("{{formatnum:90.000000000000000000000000000000000000}}")).isEqualTo("90.000000000000000000000000000000000000");
        WikiModel germanWikiModel = newWikiTestModel(Locale.GERMAN);
        assertThat(germanWikiModel.parseTemplates("{{formatnum:90.000}}")).isEqualTo("90,000");
        assertThat(germanWikiModel.parseTemplates("{{formatnum:90.000000000000000000000000000000000000}}")).isEqualTo("90,000000000000000000000000000000000000");
    }

    @Test public void testPlural001() {
        assertThat(wikiModel.parseTemplates("{{plural:n|is|are}}", false)).isEqualTo("is");
        assertThat(wikiModel.parseTemplates("{{plural:0|is|are}}", false)).isEqualTo("is");
View Full Code Here

Examples of info.bliki.wiki.model.WikiModel.parseTemplates()

        assertThat(wikiModel.parseTemplates("{{formatnum:1401}}", false)).isEqualTo("1,401");
        assertThat(wikiModel.parseTemplates("{{formatnum:987654321.654321}}", false)).isEqualTo("987,654,321.654");
        assertThat(wikiModel.parseTemplates("{{FORMATNUM:987654321.654321}}", false)).isEqualTo("987,654,321.654");

        WikiModel germanWikiModel = newWikiTestModel(Locale.GERMAN);
        assertThat(germanWikiModel.parseTemplates("{{formatnum:1401}}", false)).isEqualTo("1.401");
        assertThat(germanWikiModel.parseTemplates("{{formatnum:987654321.654321}}", false)).isEqualTo("987.654.321,654");

        WikiModel italianWikiModel = newWikiTestModel(Locale.ITALIAN);
        assertThat(italianWikiModel.parseTemplates("{{formatnum:1401}}", false)).isEqualTo("1.401");
        assertThat(italianWikiModel.parseTemplates("{{formatnum:987654321}}", false)).isEqualTo("987.654.321");
View Full Code Here

Examples of info.bliki.wiki.model.WikiModel.parseTemplates()

        assertThat(wikiModel.parseTemplates("{{formatnum:987654321.654321}}", false)).isEqualTo("987,654,321.654");
        assertThat(wikiModel.parseTemplates("{{FORMATNUM:987654321.654321}}", false)).isEqualTo("987,654,321.654");

        WikiModel germanWikiModel = newWikiTestModel(Locale.GERMAN);
        assertThat(germanWikiModel.parseTemplates("{{formatnum:1401}}", false)).isEqualTo("1.401");
        assertThat(germanWikiModel.parseTemplates("{{formatnum:987654321.654321}}", false)).isEqualTo("987.654.321,654");

        WikiModel italianWikiModel = newWikiTestModel(Locale.ITALIAN);
        assertThat(italianWikiModel.parseTemplates("{{formatnum:1401}}", false)).isEqualTo("1.401");
        assertThat(italianWikiModel.parseTemplates("{{formatnum:987654321}}", false)).isEqualTo("987.654.321");
    }
View Full Code Here

Examples of info.bliki.wiki.model.WikiModel.parseTemplates()

        WikiModel germanWikiModel = newWikiTestModel(Locale.GERMAN);
        assertThat(germanWikiModel.parseTemplates("{{formatnum:1401}}", false)).isEqualTo("1.401");
        assertThat(germanWikiModel.parseTemplates("{{formatnum:987654321.654321}}", false)).isEqualTo("987.654.321,654");

        WikiModel italianWikiModel = newWikiTestModel(Locale.ITALIAN);
        assertThat(italianWikiModel.parseTemplates("{{formatnum:1401}}", false)).isEqualTo("1.401");
        assertThat(italianWikiModel.parseTemplates("{{formatnum:987654321}}", false)).isEqualTo("987.654.321");
    }

    @Test public void testFormatnum002() {
        // default locale is ENGLISH
View Full Code Here

Examples of info.bliki.wiki.model.WikiModel.parseTemplates()

        assertThat(germanWikiModel.parseTemplates("{{formatnum:1401}}", false)).isEqualTo("1.401");
        assertThat(germanWikiModel.parseTemplates("{{formatnum:987654321.654321}}", false)).isEqualTo("987.654.321,654");

        WikiModel italianWikiModel = newWikiTestModel(Locale.ITALIAN);
        assertThat(italianWikiModel.parseTemplates("{{formatnum:1401}}", false)).isEqualTo("1.401");
        assertThat(italianWikiModel.parseTemplates("{{formatnum:987654321}}", false)).isEqualTo("987.654.321");
    }

    @Test public void testFormatnum002() {
        // default locale is ENGLISH
        assertThat(wikiModel.parseTemplates("{{formatnum:987,654,321.654321|R}}", false)).isEqualTo("9.87654321654321E8");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.