all repos — honk @ fb041c8ad9a9d86390275c95b38643420b0b3d5d

my fork of honk

fun_test.go (view raw)

 1package main
 2
 3import (
 4	"testing"
 5)
 6
 7func TestObfusbreak(t *testing.T) {
 8	input := `link to https://example.com/ with **bold** text`
 9	output := `link to <a href="https://example.com/">https://example.com/</a> with <b>bold</b> text`
10
11	tmp := obfusbreak(input)
12	if tmp != output {
13		t.Errorf("%s is not %s", tmp, output)
14	}
15}