blob: 97f1a383a9a97596b21d6f76be27646c2a4e3eab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package org.javacs;
import static org.hamcrest.Matchers.*;
import static org.javacs.TipFormatter.asMarkdown;
import static org.junit.Assert.*;
import org.junit.Test;
public class TipFormatterTest {
@Test
public void formatSimpleTags() {
assertThat(asMarkdown("<i>foo</i>"), equalTo("*foo*"));
assertThat(asMarkdown("<b>foo</b>"), equalTo("**foo**"));
assertThat(asMarkdown("<pre>foo</pre>"), equalTo("`foo`"));
assertThat(asMarkdown("<code>foo</code>"), equalTo("`foo`"));
assertThat(asMarkdown("{@code foo}"), equalTo("`foo`"));
}
}
|