You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
324 B

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)
}
}