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("foo"), equalTo("*foo*")); assertThat(asMarkdown("foo"), equalTo("**foo**")); assertThat(asMarkdown("
foo
"), equalTo("`foo`")); assertThat(asMarkdown("foo"), equalTo("`foo`")); assertThat(asMarkdown("{@code foo}"), equalTo("`foo`")); } }