Browse Source

redid test

Signed-off-by: gryffyn <me@neveris.one>
main
gryffyn 5 months ago
parent
commit
b1f669c108
Signed by: gryffyn GPG Key ID: 6948DD6514D02BEF
  1. 6
      md2gmi_test.go

6
md2gmi_test.go

@ -1,14 +1,16 @@
package main
import (
"strings"
"testing"
)
func TestMd2gmi(t *testing.T) {
testlink := `hello [link](example.com) other stuff`
testlink_c := `hello
=> example.com link
other stuff`
_testlink := md2gmi(testlink)
if strings.Contains(_testlink, "=>") {
if _testlink != testlink_c {
t.Error("Failed refactoring links - got: " + _testlink)
}
}
Loading…
Cancel
Save