add a very basic test
Ted Unangst tedu@tedunangst.com
Sun, 12 May 2019 10:02:44 -0400
2 files changed,
18 insertions(+),
0 deletions(-)
A
fun_test.go
@@ -0,0 +1,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) + } +}