fix(test): update markup test case

Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
Amogh Lele 2023-05-29 14:50:38 +05:30
parent bd06b7ee37
commit 44b3f41a4b

View File

@ -71,7 +71,8 @@ func TestConvert(t *testing.T) {
}, },
}) })
if markup != "<strong>&lt;strong&gt; </strong><em>&lt;strong&gt;and&lt;/strong&gt;</em><em> emphasized</em> only" { expected := "<strong>&lt;strong&gt; </strong><em><strong>and</strong></em><em> emphasized</em> only"
t.Errorf("Expected markup to be <strong>&lt;strong&gt; </strong><em>&lt;strong&gt;and&lt;/strong&gt;</em><em> emphasized</em> only only, got %s", markup) if markup != expected {
t.Errorf("Expected markup to be '%s', got '%s'", expected, markup)
} }
} }