all repos — honk @ 9ae9eabcd994a625de93fb0f0250d74f3a1a4663

my fork of honk

fun_test.go (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
package main

import (
	"testing"
)

func TestObfusbreak(t *testing.T) {
	input := `link to https://example.com/ with **bold** text`
	output := `link to <a href="https://example.com/">https://example.com/</a> with <b>bold</b> text`

	tmp := obfusbreak(input)
	if tmp != output {
		t.Errorf("%s is not %s", tmp, output)
	}
}