summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-09-16 20:06:44 -0700
committerGeorge Fraser <george@fivetran.com>2018-09-16 20:07:11 -0700
commitca614cd7f02918b89f0857e23d760d9b25543420 (patch)
treeec25981360383f0bb14ef6b8a34f8be3ed5aafb1 /src/test
parent177395e3bd3f59064adc0e8744af6173dd8aae03 (diff)
downloadjava-language-server-ca614cd7f02918b89f0857e23d760d9b25543420.zip
Eliminate depndency on remark
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/javacs/TipFormatterTest.java16
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`"));
+ }
+}