Search in sources :

Example 1 with CommentRichTextEndValueConverter

use of org.eclipse.xtend.core.conversion.CommentRichTextEndValueConverter in project xtext-xtend by eclipse.

the class RichTextValueConverterTest method testCommentRichTextEnd_02.

@Test
public void testCommentRichTextEnd_02() {
    String text = "�� comment\n'''";
    String expectation = "";
    CommentRichTextEndValueConverter converter = get(CommentRichTextEndValueConverter.class);
    String value = converter.toValue(text, null);
    assertEquals(expectation, value);
}
Also used : CommentRichTextEndValueConverter(org.eclipse.xtend.core.conversion.CommentRichTextEndValueConverter) Test(org.junit.Test)

Example 2 with CommentRichTextEndValueConverter

use of org.eclipse.xtend.core.conversion.CommentRichTextEndValueConverter in project xtext-xtend by eclipse.

the class RichTextValueConverterTest method testCommentRichTextEnd_01.

@Test
public void testCommentRichTextEnd_01() {
    String text = "�� comment\ncontent'''";
    String expectation = "content";
    CommentRichTextEndValueConverter converter = get(CommentRichTextEndValueConverter.class);
    String value = converter.toValue(text, null);
    assertEquals(expectation, value);
}
Also used : CommentRichTextEndValueConverter(org.eclipse.xtend.core.conversion.CommentRichTextEndValueConverter) Test(org.junit.Test)

Aggregations

CommentRichTextEndValueConverter (org.eclipse.xtend.core.conversion.CommentRichTextEndValueConverter)2 Test (org.junit.Test)2