all repos — honk @ 050b28abf2d800f7f101281c9e649c46c134bfc5

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}