diff options
author | George Fraser <george@fivetran.com> | 2018-09-16 20:06:44 -0700 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-09-16 20:07:11 -0700 |
commit | ca614cd7f02918b89f0857e23d760d9b25543420 (patch) | |
tree | ec25981360383f0bb14ef6b8a34f8be3ed5aafb1 /src/test | |
parent | 177395e3bd3f59064adc0e8744af6173dd8aae03 (diff) | |
download | java-language-server-ca614cd7f02918b89f0857e23d760d9b25543420.zip |
Eliminate depndency on remark
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/TipFormatterTest.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/java/org/javacs/TipFormatterTest.java b/src/test/java/org/javacs/TipFormatterTest.java new file mode 100644 index 0000000..2358013 --- /dev/null +++ b/src/test/java/org/javacs/TipFormatterTest.java @@ -0,0 +1,16 @@ +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`")); + } +} |