all repos — honk @ f9fb2c73760045569f460dac473454ccfb4ea049

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}