all repos — honk @ f0ab4821dfea2066ff97aa0a6bafc16a33d7300c

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}