Skip to content

TextObjectFactory changes text #97

@danielnaber

Description

@danielnaber

This test fails:

    TextObjectFactory textObjectFactory  = new TextObjectFactoryBuilder().maxTextLength(1000).build();
    String inp = "一体日本人は生きるということを知っているだろうか。";
    String shortText = textObjectFactory.forText(inp).toString();
    assertEquals(inp, shortText);

Output:

org.junit.ComparisonFailure: 
Expected :一体日本人は生きるということを知っているだろうか。
Actual   :一万日三人あ三ああああああああ之ああああああああ。

I guess the issue is in TextObject.append().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions