all repos — honk @ 90903da8e866912e74605556a6d8300afc7fbfa2

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}