all repos — honk @ 5531a8898f7c4531a18bb90e80c406cce4232e62

my fork of honk

markitzero_test.go (view raw)

 1package main
 2
 3import (
 4	"testing"
 5)
 6
 7func TestMarkitzero(t *testing.T) {
 8	input := `link to https://example.com/ with **bold** text`
 9	output := `link to <a class="mention u-url" href="https://example.com/">https://example.com/</a> with <b>bold</b> text`
10
11	result := markitzero(input)
12	if result != output {
13		t.Errorf("\nexpected:\n%s\noutput:\n%s", output, result)
14	}
15}